onkeypress="return event.keyCode>=48&&event.keyCode<=57" onpaste="return !clipboardData.getData('text').match(/\D/)" ondragenter="return false" style="ime-mode:disabled"
??使用以上四个方法后,想输入非数字到文本框中,应该不可能了吧,呵呵,不过可能不跨浏览器,在IE中表现还是不错的,呵呵
onkeypress="return event.keyCode>=48&&event.keyCode<=57" onpaste="return !clipboardData.getData('text').match(/\D/)" ondragenter="return false" style="ime-mode:disabled"
??使用以上四个方法后,想输入非数字到文本框中,应该不可能了吧,呵呵,不过可能不跨浏览器,在IE中表现还是不错的,呵呵