javascript - Plugin for jquery for date clears textbox -


i use jquery plugin date

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

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -