tags:

views:

57

answers:

2

hi i have a page having text box. in that i should not allow user to go to next page unless he enters some NUMBER. it should number but not text and should not be empty , any help pls?

+4  A: 

Try this:

isNaN(yourText.value)

return true if its Not a Number

Rubens Farias
thanks Rubens Farias
Sunny Mate
A: 

The title references checking for null, so you might also want to look at the null object in javascript.

Michael Paulukonis