Masking insurance number in account creation
1) header.js
Function call in .JS :- hideNum();
2) function displayNum(x) {
var p = document.getElementById('employeeHSubscriberNum');
p.setAttribute('type', 'text');
return;
}
function hideNum() {
var p = document.getElementById('employeeHSubscriberNum');
var employeeHSubscriberNumValues = $('#employeeHSubscriberNum').val();
if(employeeHSubscriberNumValues!=null && employeeHSubscriberNumValues!=" ")
{
p.setAttribute('type', 'password');
}else{
$("#employeeHSubscriberNum").val("");
}
return;
}
3) header.jsp
<%
if(menuSettingsMap.containsKey("HLTHPLN")&&
(menuSettingsMap.get("HLTHPLN")==1)){
%>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 pad25">
<div class="form-group clearfix">
<label class="col-lg-5 col-md-5 col-sm-5 col-xs-6 nopadding mt7">
<%=insuranceNumberFormat%>:</label>
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-6 nopadding">
<input type="text" class="form-control"
id="employeeHSubscriberNum" onClick="displayNum()"
onmouseout="hideNum();" >
</div>
</div>
<div class="form-group clearfix">
<label class="col-lg-5 col-md-5 col-sm-5 col-xs-6 nopadding
mt7">Member Suffix:</label>
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-6 nopadding">
<input type="text" class="form-control" id="memberSuffix">
</div>
</div>
<div class="spacer80 clearfix hidden-xs"></div>
</div>
<%} %>
Comments
Post a Comment