I would like verify the password format true or false in checkout with jquery, is it possible ? :
for those both fields :
<input class="input-text mage-error" data-bind="
value: passwordConfirmation,
attr: {
placeholder: isPassword() == true ? '' : $t('optional'),
}" type="password" name="password-confirmation" id="password-confirmation" data-validate="{required:true, equalTo:'#customer-password'}" autocomplete="off" placeholder="" aria-required="true" style="padding-top: 0px;" aria-invalid="true" aria-describedby="password-confirmation-error">
and
<input class="input-text valid" data-bind="
event: {
input: createAcc === 3 ? isPasswordRequired() : isPasswordSet($element)
},
attr: {
placeholder: isPassword() == true ? '' : $t('optional'),
'data-validate': JSON.stringify({required:true,'validate-customer-password': validate()}),
'data-password-min-character-sets': getRequiredCharacterClassesNumber(),
'data-password-min-length': getMinimumPasswordLength()
}" type="password" name="password" id="customer-password" autocomplete="off" placeholder="" data-validate="{"required":true,"validate-customer-password":true}" data-password-min-character-sets="3" data-password-min-length="8" aria-required="true" style="padding-top: 0px;">