?
Solved

Problem with jscript mask.

Posted on 2016-08-01
3
Medium Priority
?
171 Views
Last Modified: 2016-08-12
I just stole this code from another page where it works.  I don't get the mask on this page.
test1.php
0
Comment
Question by:breeze351
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
Branislav Borojevic earned 2000 total points
ID: 41737923
The script does not work because you did not include the jQuery library and the jQuery Mask plugin in your PHP file.

See this link: https://igorescobar.github.io/jQuery-Mask-Plugin/

Attached is the file you included with added library and the plugin. You will see that it works. You need to increase the character limit to allow full phone number to be entered, because the (,), and - take each 1 character space.

Regards,
test.php
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 41737930
Client-side telephone number validation does not require jQuery any more.  You might want to consider the modern alternative.  There is native HTML5 support for input type="tel" with the pattern attribute.
https://www.w3.org/TR/html-markup/input.tel.html
0
 

Author Closing Comment

by:breeze351
ID: 41754387
Thanks I've been away and haven't had time to close this.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question