Reputation: 355
I am calling a function when form is submitting.
$('#form-target').submit(function(){
makechange();
return false;
});
But in some case i want to stop this event.
Upvotes: 0
Views: 48
Reputation: 17480
Try
$('#form-target').submit(function(event){
event.preventDefault();
});
Upvotes: 4