Author: Nikhil Sista | Posted on: 12/6/2010 2:08:25 AM | Views : 519

Hello All,

How do i use JavaScript in the following scenario:

I've two textboxs tb1,tb2 if i move out of the textbox 1 without filling the data in the textbox, it must validate against the empty fields(RequiredField Validator) & accept only a or b or c or d(Regex Validator)and focus back in the textbox. However, if the user enters the data in the tb1, the second textbox must be automatically filled in with a value, some hardcoded value for the timebeing. Also, if i make changes in the tb1, the value in the tb2 must be changed again(i can write the logic for this) and vice-versa. how can i acheive this ?


Cheers
Nikhil
...

Go to the complete details ...