jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes Input field validations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Input field validations" Watch "Input field validations" New topic

Input field validations

Anita Karnati

Joined: Dec 26, 2000
Posts: 6
Hello How do i do numeric input field validations
can anybody send me the code please
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Let me know exactly what you are trying to validate. You probably have to do a parseInt or something like that to turn the input value from a string to an integer and then check the value that way.
S Chandra Mohan
Ranch Hand

Joined: Oct 19, 2000
Posts: 75
The Best way to handle this is to use
isNaN(fieldname) function.
This returns true if the var is not a numeric.
if(isNaN(document.formname.t1.value) == true)
alert("Not a numeric value);
Hope u got this
all the best
S Chandra Mohan

Have a wonderful day and wish u success<p>S Chandra Mohan<br />sc_mohan_us@yahoo.com
S Chandra Mohan
Ranch Hand

Joined: Oct 19, 2000
Posts: 75
Hello Everyone,
Is there any coding using which i can specify page skipping
or page break in a HTML page.
I am writing reports using servlets and want to know whether any
page skipping utility is available or not.
Thanks in advance
s Chandra Mohan
I agree. Here's the link: http://aspose.com/file-tools
subject: Input field validations
It's not a secret anymore!