The following code works fine in Chrome but does nothing in FF and IE. How can I debug this? The way that Im developing locally means I cant make my code publicly accessible.
$(document).ready(function () {
// alert('dfd');
$('#mobileMenuLink a').click(function () {
event.preventDefault();
// alert('dfd');
$('#menu').toggleClass('mobileMenuOpen');
});
});
What is
event? Maybe you just missed a parameter declaration: