Here Mudassar Ahmed Khan has explained with an example, how to check if TextBox is Empty using JavaScript.
When the Validate Button is clicked, a JavaScript function is called and the TextBox is referenced and its value is compared with Empty string and if the condition tests TRUE then the TextBox is considered Empty.
↧