currently I have the following code
it comes out to something like this
add this code in your input type;
onkeypress="return (event.charCode == 8 || event.charCode == 0 || event.charCode == 13) ? null : event.charCode >= 48 && event.charCode <= 57"
for example: