How to check if a textbox contains numbers only?
While googling I came across this. But I\'m wondering if isNumeric can be used for this purpose or if t
isNumeric
using pure JS regular expression
var query = document.getElementById('myText').value; var isNumeric=query.match(/^\d+$/); if(isNumeric){/*...*/}else{/*...*/}
or using html5 control