Hi,
I'm using
struts. In one of my pages there is one text box, where we must not allow user to enter values other than numerics. For that I wrote this
java script. This was working fine . The problem is , my QA found that
thay can paste some characters into that. Can any one help ....
function allowOnlyIntegers(evt) {
evt = (evt) ? evt : window.event
var c = (evt.which) ? evt.which : evt.keyCode
if (c > 31 && (c < 48 || c > 57)) {
return false
}
return true
}
Thanks in advance
Swathiveer