jQuery - Empty Field Validation
One of the most used logic related to submitting a form is preventing sumbission if a field is empty.
In this example we'll provide examples with source code how to prevent form submit in case of empty field.
The main trick here is using .preventDefault() function to stop the submission.