How to add onsubmit to form with jquery -
i trying add together following:
onsubmit="return processform(this); to form id
<form id="formbuilder" name="featured_homes" method="post" action="fb/feedback.php"> with jquery final result reads as:
<form id="formbuilder" name="featured_homes" method="post" action="fb/feedback.php" onsubmit="return processform(this);"> here attempt:
$('#formbuilder').onsubmit('return processform(this);'); this not working, ideas adjust?
simply utilize submit():
$('#formbuilder').submit(function() { homecoming processform(this); } jquery
No comments:
Post a Comment