| Author |
Problem in validatation in text filed.
|
Abhijit Das
Ranch Hand
Joined: Sep 25, 2007
Posts: 156
|
|
Hi,
I need a HELP IN JAVASCRIPT VALIDATION at the time of insertion in the text field..
I need to validate suppose 4 text boxes.- should not be empty, only numeric in a range or character, etc
I am using onBlur() as a event attribute in each text box.
But i am facing problem , when there is an empty filed
if(some condition){
obj.select();
obj.focus();
return false;
}else{
return true;
}
But, the control moves to next box too. or it is triggerd every time , alert will remain there.
should i use different trigger for that?
If i change the order of the text box ,i.e., added non-validate text box, it works fine.
thanks
|
Abhijit Das
SCJP 5.0 | SCWCD 1.5
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
what does the full call for this validation look like?
Eric
|
 |
 |
|
|
subject: Problem in validatation in text filed.
|
|
|