Kcko
10/11/2013 - 8:45 PM

JavaScript: only num in input

JavaScript: only num in input

<input onkeypress="return !isNaN(String.fromCharCode(event.charCode || event.keyCode))">