?
Solved

Problem with jscript mask.

Posted on 2016-08-01
3
Medium Priority
?
166 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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

762 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