diff --git a/assets/js/frontend/lost-password.js b/assets/js/frontend/lost-password.js index 64f02f431ba..5c516b90c4c 100644 --- a/assets/js/frontend/lost-password.js +++ b/assets/js/frontend/lost-password.js @@ -1,5 +1,5 @@ jQuery( function( $ ) { $( '.lost_reset_password' ).on( 'submit', function () { - $( 'input[type="submit"]', this ).attr( 'disabled', 'disabled' ); + $( 'button[type="submit"]', this ).attr( 'disabled', 'disabled' ); }); }); diff --git a/assets/js/frontend/password-strength-meter.js b/assets/js/frontend/password-strength-meter.js index 0e3f0c81eb7..5cff232aad2 100644 --- a/assets/js/frontend/password-strength-meter.js +++ b/assets/js/frontend/password-strength-meter.js @@ -20,7 +20,7 @@ */ strengthMeter: function() { var wrapper = $( 'form.register, form.checkout, form.edit-account, form.lost_reset_password' ), - submit = $( 'input[type="submit"]', wrapper ), + submit = $( 'button[type="submit"]', wrapper ), field = $( '#reg_password, #account_password, #password_1', wrapper ), strength = 1, fieldValue = field.val();