Skip to content

Instantly share code, notes, and snippets.

@shohag-cse-knu
Created September 10, 2018 11:58
Show Gist options
  • Save shohag-cse-knu/e3efed644de70ef678104c851773b888 to your computer and use it in GitHub Desktop.
Save shohag-cse-knu/e3efed644de70ef678104c851773b888 to your computer and use it in GitHub Desktop.
jQuery mobile number validation
function mobile_no(val){
if((/^(017|018|016|015|011|019)\d{8}/).test(val)) {return true} else {return false}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment