AmrAbdeen
1/30/2016 - 8:32 PM

Number Only accepted into JS

Number Only accepted into JS

function numonly(evt){
	//onkeypress="return numonly(event)"
         var charCode = (evt.which) ? evt.which : evt.keyCode
         if (charCode > 31 && (charCode < 48 || charCode > 57))
         return false;
         return true;
}