You can create a random number which will never repeat itself.
echo $randomNumber = md5(date('Ymd'));
echo $randomNumber = md5(date('Ymd'));
$(".CLASS_NAME").on("mouseover", "li", function() {
alert('now the mouseover will work');
});
NOTE : replace CLASS_NAME with your selector.
Read the DOCS! http://api.jquery.com/on/
str = str.replace(/abc/g, '');
or you can use this one :
var find = 'abcxyz';
var re = new RegExp(find, 'g');
str = str.replace(re, '');
or
function replaceAll(find, replace, str) {
return str.replace(new RegExp(find, 'g'), replace);
}
call the function :
replaceAll(find, replace, str);