Click here to Skip to main content
15,991,360 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want validate textbox1 that is can not be empty when I change to textbox2 without click the button.
Posted

U can easily do this using javascript on onchange event of textbox2, check if textbox1 is empty or not or u can enable textbox2 only when there some value in textbox1
 
Share this answer
 
v2
 
Share this answer
 
v3
In Asp.net, you can use RequiredFieldValidator to do the same.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900