Paste the code below into your actual formname.html. Place it directly between the

<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

Code goes here.


<script type="text/javascript" src="common/js/form_init.js" data-name="" id="form_init_script">


Adjust the item7_password_1 to your input ID


<style>.error-keyup-2{font-weight:bold;color:#FF0000;}</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/JavaScript">
$(document).ready(function() {
$("#item7_password_1").keyup(function() {
$("span.error-keyup-2").remove();
var inputVal = $(this).val();
var password_reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[^ ]{8,16}$/;
if(!password_reg.test(inputVal)) {
$(this).after('Please enter the proper password format');
}else{$("#fb-submit-button").prop("disabled", false);}
});
$('#fb-submit-button').click(function() {
if($('span.error').length > 0){
alert('Please fix errors!');
return false;
}
});
});
</script>