fixing js
This commit is contained in:
		
							parent
							
								
									c588ea7d3d
								
							
						
					
					
						commit
						837bdd80c9
					
				@ -90,11 +90,7 @@ $('body').on('keyup keypress', '.js-authn-otp-code', function (e) {
 | 
			
		||||
  // if($(this).val().length === $(this).attr("maxlength")){
 | 
			
		||||
  //   $('.submit-btn').prop("disabled", false);
 | 
			
		||||
  // }
 | 
			
		||||
  if ($(this).val().length === 14) {
 | 
			
		||||
    $('.submit-btn').prop('disabled', false);
 | 
			
		||||
  } else {
 | 
			
		||||
    $('.submit-btn').prop('disabled', true);
 | 
			
		||||
  }
 | 
			
		||||
  $(this).val().length === 14 ? $('.submit-btn').prop('disabled', false) : $('.submit-btn').prop('disabled', true);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
$('.js-authn-otp-code').mask('####-####-####');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user