Jump to content

Masked Input


Go to solution Solved by TapeGun007,

Recommended Posts

I cannot seem to get this code to work.  What's interesting, is that I've used this before and had no issues, but it was on a different server.  There has got to be something super simple that I am overlooking.  

 

Here is the code:

<!DOCTYPE HTML>
<head>
<title>Untitled 3</title>
</head>
 
<body>
 
<script type='text/javascript' src='js/jquery-3.1.1.js'></script> 
<script type="text/javascript" src="js/jquery.maskedinput.js"></script>
 
<script type="text/javascript">
jQuery(function(){
   $("#date").mask("99/99/9999",{placeholder:"mm/dd/yyyy"});
});
</script>
 
<input id="date" type="text" />
 
</body>
</html>

It just doesn't format the Input field at all.  Help?

 

PS.  I know the paths are correct.

Edited by TapeGun007
Link to comment
https://forums.phpfreaks.com/topic/302968-masked-input/
Share on other sites

When I went to the page you just linked, the Date field works just fine once you start typing.  They probably should have included  placeholder="MM/DD/YYYY".

 

I had an account on BlueHost and coded a website there about a year ago.

 

I should have mentioned, the script is from http://digitalbush.com/projects/masked-input-plugin/

Edited by TapeGun007
Link to comment
https://forums.phpfreaks.com/topic/302968-masked-input/#findComment-1541585
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.