Check if text field contains only Numericals
function check() { var val = document.getElementById("chkk").value; if(val.match(/^\d+$/)) { alert(document.getElementById("chkk").value); } else{alert("Please entere valid number");} }
function check() { var val = document.getElementById("chkk").value; if(val.match(/^\d+$/)) { alert(document.getElementById("chkk").value); } else{alert("Please entere valid number");} }
Copyright © 2013 Blogger Plug n Play - jQuery Tools and Widgets and Blogger Templates
0 comments :
Feel free to leave comment if you like above widget, have any questions or just say Hi! :)