Solved

Problem with jscript mask.

Posted on 2016-08-01
3
69 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
3 Comments
 
LVL 4

Accepted Solution

by:
Branislav Borojevic earned 500 total points
Comment Utility
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 108

Expert Comment

by:Ray Paseur
Comment Utility
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
Comment Utility
Thanks I've been away and haven't had time to close this.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now