Widgets > Input Widgets > wijinputmask > Hide Input |
The wijinputmask widget allows you to use password characters so that the actual password or social security number doesn't appear on the screen. Use the passwordChar option to take advantage of this feature. See the InputMask > Password sample (http://demo.componentone.com/ASPNET/MVCExplorer/inputmask/Password) and InputMask > SSN sample (http://demo.componentone.com/ASPNET/MVCExplorer/inputmask/SSN) of the MVC Control Explorer live demo.
<body>
tags of the page.
<input type="text" id="textbox1" />
<h6>Mask</h6>
<p>000-00-0000</p>
<h6>Password Char</h6>
<p>#</p>
<input type="text" id="textbox2" />
<h6>Mask</h6>
<p>CCCCCCC</p>
<h6>Password Char:</h6>
<p>*</p>
</div>
tags you added in the previous step, enter the following jQuery script to initialize the wijinputmask widget and set the passwordChar options.
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
$("#textbox1").wijinputmask(
{
mask: '000-00-0000',
passwordChar: '#',
hidePromptOnLeave: true
});
$("#textbox2").wijinputmask(
{
mask: 'CCCCCCC',
passwordChar: '*',
hidePromptOnLeave: true
});
});
</script>