javascript - Plugin for jquery for date clears textbox -
i have input in updatepanel
<input id="datemask" type="text" />
and js code:
function setd() { alert(1); $("#datemask").mask("99/99/9999", { placeholder: "_" }); } $(document).ready(function () { setd(); });
it supposed mask date when press enter inut clears text if click on input text remains. problem?
upd: jquery version:<script src="/scripts/jquery-1.9.1.js" type="text/javascript"></script> <script src="/scripts/jquery-ui.js" type="text/javascript"></script>
upd2: i've changed input textbox , worked hell??
how many of inputs have id of datemask
? change them classes , problems vanish.
<input class="datemask" type="text" /> function setd() { alert(1); $(".datemask").mask("99/99/9999", { placeholder: "_" }); } $(document).ready(function () { setd(); });
Comments
Post a Comment