You are viewing an old revision of this post, from December 30, 2015 @ 17:18:28. See below for differences between this version and the current revision.

Checking if your data is digit

You can use Javascript to detect the content of the input box is digit or not. Here is the code you can use:
if ( (yourcontent+"").match(/^\d+$/) ) {
   //it's all digits


  • December 30, 2015 @ 17:18:28 [Current Revision] by admin
  • December 30, 2015 @ 17:18:28 by admin

Revision Differences

There are no differences between the December 30, 2015 @ 17:18:28 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply