简体   繁体   中英

How to mask the input while loading (before click)

I am using Masked Input Plugin

Here is the Jsfiddle i tried to load. [ But it is not loading in jsfiddle, it works perfect in local ]

It is working only if i type in the textbox. How can i make the masking by default.

Here is the demo by them

Here is the code i have so far.

<script src="jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="jquery.maskedinput.js" type="text/javascript"></script>
<input id="name" type="text"></input>
<script>
$('document').ready(function() {
    $("#name").mask("99/99/9999");
});
</script>

document should not be a string:

$(document).ready(function() {
    $("#name").mask("99/99/9999");
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM