Here Mudassar Ahmed Khan has explained with an example, how to validate TextBox on Button Click 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.
↧