I have two asp.net textboxes and need to put a validate function in javascript or jquery to validate either one or the other should accept a value. Both can not be left blank. And it should make visible the error label if both text boxes are empty.
Share
The javascript validation method in your head tag:
You can set the
onsubmitattribute of your form tag to call the method like this:Just a simple example.