ParseInt() actually converts the string into an Integer. i just want to check the value entered by user is Integer or Not. I will take look at that site.<BR>Or may be for this I can search for decimal point and if i find then i can display a msg. That should work. but only thing is its a long process... <BR><BR>thanx Anywayz -Ani.
Then you won't even be *able* to convert it to a number to use that test, yes?<BR><BR>So if you *first* use parseInt and check to see if the result of the "isNaN(...)", *then* your trick works great!<BR><BR>
I am using another if statement to check characters in that field. <BR>But why u want to use parseInt(), directly use isNaN(). <BR>Actually I have different if- Conditions for each validation. i will try to combine them ...<BR><BR>Thx.