SHARING MY KNOWLEDGE
<script type="text/javascript">var input = '112334'; var vali_regex = /^[0-9]+$/;if(input.match(vali_regex)){ alert('This is a number'); }else{ alert('Not a number');}</script>
No comments:
Post a Comment