This should be working: $('a#woof').click(function(e){ e.preventDefault(); //do ajax form });
Or you could set all href attributes to '#' before adding the click function
This should be working: $('a#woof').click(function(e){ e.preventDefault(); //do ajax form });
Or you could set all href attributes to '#' before adding the click function