Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Enable button

Post Reply
Laertes
Posts: 29
Joined: Fri Apr 27, 2018 1:27 pm

Enable button

Post by Laertes »

Hello !
I am trying to click on a button but it is disabled, it only enables if clicking inside a field of the site, I filled in the field has run time. But the button does not enable, how could I enable and then click execution time?

Code: Select all

<input tabindex="1" id="login-submit" class="login submit-button" type="submit" value="Entrar" disabled="">
User avatar
salvadordf
Posts: 4080
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Enable button

Post by salvadordf »

Try the removeAttribute method in JavaScript :
https://www.w3schools.com/jsref/met_ele ... ribute.asp
Post Reply