I have a HTML anchor that when clicked should make a div slide up or down (I call JQuery\'s .slideToggle(); function);
.slideToggle();
My Problem: When
Solution 1:
HTML:
Click me
jQuery:
$(function(){ $("a").click(function(event){ event.preventDefault(); }); });
Solution 2:
Solution 3:
Solution 4:
$(function(){ $("a").click(function(event){ return false; }); });
Solution 5: