I'm trying to trigger a click event on page load but it doesn't seem to be working..
I can't see any errors in the Firebug console...
Jquery:
jQuery(document).ready(function($) {
$(window).load(function(){
alert("Loaded.");
$('.a-category .active').trigger('click');
});
});
I added the alert just to check if it's working. And it does alert..
Any help will be appreciated!
$(window).load(function(){part. don't think it will solve your problem, but it's not needed unless you really want to wait for all elements on the page to load (images and whatnot).a-category .active$(el").click()?