Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery only number allowed to 10 digit

<script type="text/javascript">
  $(document).ready(function() {	
  $("#phone_work").attr("maxlength", "10");
  $("#phone_work").keypress(function(e) {
    var kk = e.which;
    if(kk < 48 || kk > 57)
      e.preventDefault();
  });
});
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to go to a link using javascript 
Javascript :: json object length in javascript 
Javascript :: jquery get screen height 
Javascript :: jspdf cdn 
Javascript :: jquery reload page 
Javascript :: npm update all packages 
Javascript :: how to find number in string js 
Javascript :: dom loaded event 
Javascript :: check if click is inside div javascript 
Javascript :: ruby read json file 
Javascript :: execute after one second javascript 
Javascript :: easiest way to show current date in react 
Javascript :: how to check variable type jquery 
Javascript :: jquery-3.2.1.min.js download 
Javascript :: objectid is not defined node js mongodb 
Javascript :: javascript open link in new tab 
Javascript :: jquery for each tr in td 
Javascript :: open websute react native 
Javascript :: change background image with jquery 
Javascript :: get random number with min and max 
Javascript :: mysql json_extract remove quotes 
Javascript :: how to unmount bottom tab screens 
Javascript :: get meta content jquery 
Javascript :: eas generate apk 
Javascript :: invalid host header vue 
Javascript :: javascript get number of elements in object 
Javascript :: update core-js 
Javascript :: moment format sql date 
Javascript :: Remove specific object from the Array in Javascript 
Javascript :: node js remove html tags from string 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =