Input type button/submit that does both form validation and submit via jquery ajax?
- by Pandiya Chendur
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....