$(".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/
$(".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);
<?php // $document should contain an HTML document. // This will remove HTML tags, javascript sections // and white space. It will also convert some // common HTML entities to their text equivalent.$search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript "'<[/!]*?[^<>]*?>'si", // Strip out HTML tags "'([rn])[s]+'", // Strip out white space "'&(quot|#34);'i", // Replace HTML entities "'&(amp|#38);'i", "'&(lt|#60);'i", "'&(gt|#62);'i", "'&(nbsp|#160);'i", "'&(iexcl|#161);'i", "'&(cent|#162);'i", "'&(pound|#163);'i", "'&(copy|#169);'i", "'&#(d+);'e"); // evaluate as php $replace = array ("", "", "\1", "\"", "&", "<", ">", " ", chr(161), chr(162), chr(163), chr(169), "chr(\1)"); $text = preg_replace($search, $replace, $document); ?>Source:http://forums.digitalpoint.com/showthread.php?t=57667
echo Mage::helper('customer')->getCustomer()->getId();
print_r(Mage::helper('customer')->getCustomer()->getData());
echo Mage::getSingleton('customer/session')->getCustomer()->getId();