Solved

Problem with jscript mask.

Posted on 2016-08-01
3
90 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
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 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 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

22 Experts available now in Live!

Get 1:1 Help Now