Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Problem in validatation in text filed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem in validatation in text filed." Watch "Problem in validatation in text filed." New topic
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: 15376
    
    6
what does the full call for this validation look like?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in validatation in text filed.
 
Similar Threads
Disable Copy/Paste in a Textbox
How to populate html:select options in struts
Dropdown selection
Focus problem wiht Mac OS
Column Tabbing issue in DataTable