0

I have this code it's working but it's accept small letter (e) and big (E) How can I prevent that? I've seen some similar codes that also accepts (e & E)

function isNumberKeyDecimal(evt) 
    {
         var charCode = (evt.which) ? evt.which : event.keyCode

         if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46)
         return false; 

     return true;
    }
bdalina
  • 503
  • 10
  • 16

0 Answers0