I have been working on a project for some time, but never tested it on firefox until now, and found out none of my jquery works on firefox. Only chrome. Can anybody tell me why it’s acting this way? Is it a syntax error? Is it something to do with incompatibility of jquery with firefox?
$('#dropmenutitle').click(function () {
event.stopPropagation();
$('#dropmenu').fadeToggle('fast');
$('body').click(function () {
$('#dropmenu').fadeOut('fast');
});
});
$('#popboxtitle').click(function () {
event.stopPropagation();
$('#popboxtop').fadeToggle('fast');
$('body').click(function () {
$('#popboxtop').fadeOut('fast');
});
});
That is my code, and I am using jquery 1.7.1
In your events,
eventdoes not exist. You need to put it in the parameter list.