Hi,
JDeveloper version: 12.2.1.2.0
Below is the script to restrict input to numbers only in the ADF page, the code works fine in Firefox, but not in chrome, IE. I tried clearing the cache and reinstalling google chrome but no luck. Please find the below version of each browser.
FF: 60.3.0esr (32-bit) upto date
Chrome: Version 70.0.3538.102 (Official Build) (64-bit)
IE: Microsoft Edge 41.16299.726.0
<af:resource type="javascript">
function filterForNumbers(evt) {
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;
return true;
}
function enableCalendarOnly(evt) {
evt.cancel();
}
</af:resource>
If you could help me to find solution I'd appreciate it. By the way, I did read the other similarly titled question, but it didn't seem to answer this.
Thanks,
Swathi