Finding whether the Input value is numeric or not ?

Posted by Puneet20884 under JavaScript category on | Views : 2988
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