Subscribe to
Posts [Atom]


JavaScript number validation

Thursday, December 21, 2006

document.form_name.input_name.value.match(/^\d+$/)

can be used to return the input value, or null if it is not a number

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home