jquery.initialize
jquery.initialize copied to clipboard
Uncaught TypeError: Cannot read property 'querySelectorAll' of null
I'm getting the following error:
Uncaught TypeError: Cannot read property 'querySelectorAll' of null at MutationObserver.
My implementation is fairly standard I believe...
$(".cart-item-price .money").initialize( function(){
if ($(this).html().indexOf('taxes') !== -1) {
$(this).append('<span> + taxes</span>');
}
});
I'm getting the following error:
Uncaught TypeError: Cannot read property 'querySelectorAll' of null at MutationObserver.
My implementation is fairly standard I believe...
$(".cart-item-price .money").initialize( function(){ if ($(this).html().indexOf('taxes') !== -1) { $(this).append('<span> + taxes</span>'); } });
$.initialize([selector], [callback]);
So, try $.initialize('.cart-item-price .money', function(){}); instead
This issue appears inactive and a fix was suggested. If using $.initialize
does not resolve your issue, please reopen.