call a function on form submit
by Ramya[ Edit ] 2013-02-18 15:10:23
you can skip the form from submitting and call any function while submitting..
for eg,
if you are using html5, then you need a form to validate any field...also if you are using ajax concept instead of direct form submit, then use the following to call the ajax function on submitting the form,
$("form").submit(function(){
func();
});