In this tutorial, we will discuss about the 'submit' form event of jQuery. In this example , In this example a text box and a button is given, when we hit the button, it will check/validate whether entered string is "true" or not. If it is 'true' , it will show a message "Query is validated" and also a alert box to show the "success" message. The alert box will show only when "submit" event return 'true' to 'form'.
submitFormEvent.html
<!DOCTYPE html> |
OUTPUT
When we enter "true", it will display :

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.