Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Input field validations

 
Anita Karnati
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello How do i do numeric input field validations
can anybody send me the code please
Thanks
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
S Chandra Mohan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Best way to handle this is to use
isNaN(fieldname) function.
This returns true if the var is not a numeric.
ex
if(isNaN(document.formname.t1.value) == true)
{
alert("Not a numeric value);
}
Hope u got this
all the best
S Chandra Mohan
 
S Chandra Mohan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic