asp.net multiple textbox validation
Posted
by Zaps
on Stack Overflow
See other posts from Stack Overflow
or by Zaps
Published on 2010-04-26T13:22:24Z
Indexed on
2010/04/26
13:23 UTC
Read the original article
Hit count: 141
Hi,
I currently have 3 textbox controls on my page.
I also have a required valdiator of each of the textboxes. However I only want the validator for a textbox to fire if there is text in either of the other 2 textboxes. If all 3 textboxes are empty then no validators should fire.
Is there any way I can do this in javascript/jquery as I want the user to get the best experience possible.
Any help would be greatly appreciated.
Thanks in advance.
© Stack Overflow or respective owner