This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Web

  • ****
  • 183 posts
Disabled remove
« on: April 13, 2020, 09:49:56 AM »
Hi,
How can I remove disabled in mobile number field?

*

MB Themes

Re: Disabled remove
« Reply #1 on: April 13, 2020, 01:43:59 PM »
@Web
It's usually disabled for some reason.
Update plugin to latest version and if problems still occurs, create support ticket.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Web

  • ****
  • 183 posts
Re: Disabled remove
« Reply #2 on: April 13, 2020, 02:05:30 PM »
@mbthemes

Plugin new version


Mobile field empty button DISABLED


I want to remove this function


 // REMOVE DISABLED FLAG ON BUTTON IF ENTERED PHONE IS VALID
    if($('input[name="phoneNumber"]').hasClass('valid')) {
      $('button.sms-send-code').removeClass('disabled').prop('disabled', false);
    } else if($('input[name="phoneNumber"]').hasClass('error')) {
      $('button.sms-send-code').addClass('disabled').prop('disabled', true);
    }
  } , 200);
« Last Edit: April 13, 2020, 02:30:45 PM by Web »

*

MB Themes

Re: Disabled remove
« Reply #3 on: April 13, 2020, 06:05:22 PM »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on April 13, 2020, 09:06:47 PM
*

Web

  • ****
  • 183 posts
Re: Disabled remove
« Reply #4 on: April 13, 2020, 07:08:59 PM »
Solved

Remove this code

setInterval(function(){
    if($('.sms-verify .sms-step1 input.error').length || $('.sms-verify .sms-step1 input.sms-input-field').val() == '') {
      $('.sms-verify .sms-step1 .sms-button').addClass('disabled').prop('disabled', true);
    } else {
      //$('.sms-verify .sms-step1 .sms-button').removeClass('disabled').removeClass('loading').prop('disabled', false);
    }
  } , 200);