Finding whether the Input value is numeric or not ?

Posted by Puneet20884 under JavaScript category on | Views : 3012
There is an inbuilt function in javascript for this
and the function is IsNan()
the sample usage is :
if(IsNan('saasasa')) // We can use the textbox's or control's value or innertext here
alert('Not a number');
alert('a number');

Comments or Responses

Login to post response