To cancel only the default action by using the preventDefault method. : Event « jQuery « JavaScript DHTML
- JavaScript DHTML
- jQuery
- Event
To cancel only the default action by using the preventDefault method.
$("form").bind("submit", function(event){
event.preventDefault();
});
Related examples in the same category