I have the following which is working on every browser other than Firefox. This appears to be a problem the prevent default action, how can I fix this?
$(".subcontent .sidebar .mobileopen").on("click", function () {
event.preventDefault();
$('.subcontent .sidebar .mobileopen').toggleClass('removeborder');
$('.subcontent .sidebar nav.mobile').slideToggle();
$('.subcontent .sidebar nav.mobile ul li.menu-item-has-children > a').on("click", function () {
event.preventDefault();
$(this).nextAll('ul').eq(0).slideToggle('slow');
$(this).parent().toggleClass("open");
});
});