This is an updated and improved version of AJAX Generic Form Parser
That’s nice, but what does it do?
Before I present to you the Code Example, I’ll explain a little about how to configure your form and make certain fields required.
For simplicity, I’ve chosen to make use of the fields ‘Title’ tag. This is where you make fields required.
For example: Readmore.........
Note: The script will support the following form field types:
Just to recap. To make any of the supported fields required, just add title=”required”!
We must use return before the function call, this tells to form ‘do not submit the form unless the function returns true’.