Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

escape exponential input number in js

isNumber= (e) => {
     e = (e) ? e : window.event;
      var charCode = (e.which) ? e.which : e.keyCode;
      if ((charCode > 31 && (charCode < 48 || charCode > 57)) && charCode !== 46) {
        e.preventDefault();
      
      } else {
        return true;
      }
    }
Comment

PREVIOUS NEXT
Code Example
Javascript :: Including soft deleted records 
Javascript :: react controllers 
Javascript :: close element on click outside 
Javascript :: paramters and arguments 
Javascript :: Tableau JS api getdata 
Javascript :: reload stylesheet with out refresh page 
Javascript :: comment creer des switch en react js 
Javascript :: javascript Big decimal 
Javascript :: how to get node modules 
Javascript :: How display console log in frontend 
Javascript :: cercle progress bar angular 
Javascript :: how to get author in wordpress api react 
Javascript :: microseconds to current time js code 
Javascript :: how to create an object that stores personal data in javascript 
Javascript :: wakatime cli installation via npm 
Javascript :: Form Data error (unable to decode value) characters specials 
Javascript :: Function for masking the character 
Javascript :: js wrap a function pass parameters to function 
Javascript :: javascript keyup original src element 
Javascript :: sails commands 
Javascript :: after storing array array state is empty 
Javascript :: react native update performance useReducer 
Javascript :: Without a custom hook example in react 
Javascript :: convert fetch in axios 
Javascript :: Getting error after I put Async function in useEffect 
Javascript :: cookie parser object null prototype 
Javascript :: keep form values after submit javascript 
Javascript :: fs keep file open 
Javascript :: create trigger to run every minute in apps script 
Javascript :: how to add jquery.zoom in angular 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =