Input mask is not firing in asp.net
i have input mask set for each textbox that is not firing.
but script javascript is firing fine.
code is copy pasted from anot开发者_如何转开发her page of same website and page which get copied is working fine
I dont know what js library are you using orwhat is your problem without any code, but I am showing what I use and how I use to do the input mask
I use jquery and a plugin called masked Input plugin
All you need to is to include the two js libraries into your page
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.maskedinput.js" type="text/javascript"></script>
than just call them
<script>
jQuery(function($){
$("#date").mask("99/99/9999");
$("#phone").mask("(999) 999-9999");
});
</script>
supposing you have this textboxes
<input id="date" type="text" />
<input id="phone" type="text" />
It will automatically do input mask for you
精彩评论