This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in validatation in text filed.

 
Abhijit Das
Ranch Hand
Posts: 156
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what does the full call for this validation look like?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic