jQuery submit any form via ajax using valuable script

If you have too many forms to submit via ajax you can use the below speedy code to do that. Only you have to call to that function via parameters. Great script with custom validations.

You must include jQuery library file and jquery.validation.js file. I have used this my own code for PHP CodeIgniter.

1-My form submit ajax function


2-HTML form


3-Call to function


4-Server response

You have the below advantages:
1-Can submit form via ajax using few code
2-Call back function
3-call before submit
4-Call after submit
5-Json encode method
6-Serialized form data
7-No need to call each input fields
8-Can use for large or any scale of form
9-Inbuilt validations
10-Fast and clean code.