A
A
Alex2018-02-27 09:15:31
JavaScript
Alex, 2018-02-27 09:15:31

Why doesn't disabled work for button on mobile devices?

Activation / deactivation of the button on the form does not work when clicking on the checkbox. I checked it on different desktop browsers and in mobile chrome, everything is ok, but on a standard browser on android and in safari, iphone does not work. Tried by setting an attribute

formId.find('button.wpcf7-submit').attr('disabled', false);
if the checkbox is selected and removing removeAttr(disabled) if the checkbox is unchecked. Tried with property
formId.find('button.wpcf7-submit').prop('disabled', false);
, but useless. Can you please tell me how to test this. (I know how to launch the developer tools in the chrome of the phone on my computer, but I don’t know how in the default browser, and even more so in the iphone)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2018-02-27
@Arik

Google says to try with input:
<input type="button" value="Click Me" disabled>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question