[jQuery] Function not working correctly when enclosed in a form
- by Nimbuz
jQuery:
$('.btn.options').click(function() {
$(this).toggleClass('options-on');
$("#options").slideToggle("fast");
});
... works great, but when I enclosed both the buttons and the panel in tag, the panel won't slide up/down anymore?
Thanks for your help!