Spare the network an unnecessary hit if the user leaves any required form fields blank.
No web developers want their Ajax applications to hit the
network with requests if the users leave necessary text fields blank.
Thus, checking that
input elements of type
text and the large boxes called
textareas in HTML
contain values is one of the most common forms of validation.
This hack shows the code for checking if a text control is blank. The inline