Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

10 digit validation in jquery

$("#phone_num").on("blur", function(){
	var mobNum = $(this).val();
	var filter = /^d*(?:.d{1,2})?$/;
	if (filter.test(mobNum)) {
      if(mobNum.length==10){
        alert('Propper Value.');
      } else {
        alert('Please put 10  digit phone number');
        return false;
      }
	} else {
      alert('Not a valid number');
      return false;
    }    
  });
Comment

PREVIOUS NEXT
Code Example
Shell :: centos install copmposer 
Shell :: edit cron jobs linux 
Shell :: take input from user windows shell 
Shell :: Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx. 
Shell :: remove global packages npm 
Shell :: change window name command prompt 
Shell :: linux install nvm 
Shell :: Check for process and kill if running Linux 
Shell :: shell function example 
Shell :: nvm use globally 
Shell :: install laravel globally mac 
Shell :: kubectl get namespace 
Shell :: git remove folder from repository 
Shell :: create a branch from main 
Shell :: How To Switch Branch On GIT 
Shell :: sourcetree change commit message not pushed 
Shell :: linux ip addr add 
Shell :: bash how to remove the first n lines of a file 
Shell :: putty zip command 
Shell :: install fdupes duplicate content finder on linux 
Shell :: Usage Error: The nearest package directory 
Shell :: how to make a new branch git 
Shell :: know version of centos ec2 
Shell :: ls by size 
Shell :: Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. 
Shell :: install font on linux 
Shell :: find zombie process PID in linux 
Shell :: dollar to pkr 
Shell :: add vite to existing project 
Shell :: how to install snap store on kali linux 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =