Submitig form with jquery
I have simple code here, on click on submit am preventing default , and validating some data with ajax etc .
After i done validation i just want to continue form submitting .
I have tried with ('form').submit() but it is not working !? ( I have only one form on page and am selecting it )
- $(document).ready(function(){
- $('input[name=submit]').on('click',function(event){
- event.preventDefault();
- ....
- if (something){
- // submit my form
- }
- })
- })
- })
Plz help , thx