Skip to content Skip to sidebar Skip to footer

Jquery Toggle Not Working In Firefox

The following jquery script is not working in firefox. Anyone with a idea on how to correct it? $(document).ready(function () { $('#all_lists').hide(); $('#add_lists').click(

Solution 1:

You need to pass event as an argument in the click function like:

$('#add_lists').click( function(event){
                                ^   ^

Solution 2:

javascript:jQuery('body').toggleClass('open');

Using JS on an image map was returning [object, Object] in a new window in Firefox only. Fixed with:

javascript:jQuery('body').toggleClass('open');void(0);

Post a Comment for "Jquery Toggle Not Working In Firefox"