Input type button/submit that does both form validation and submit via jquery ajax?

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-05-19T17:25:01Z Indexed on 2010/05/19 17:30 UTC
Read the original article Hit count: 144

I am trying to use jquery validator plugin and form submit via ajax in jquery.....

Validator plugin works with <input type="submit" value="Add a client" id="clientadd"/> but my form submit works with <input type="button" value="Add a client" id="clientadd"/>.....

<form id="addform" autocomplete="off">
 //My controls here
</form>

I didn't specify action and method attributes here as i ll submit my form using jquery.ajax().... Any suggestion how to get both working together....

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about form-validation