1

I am trying to set disabled button to false but seems it's not working. I am using Bootstrap 4 styling.

$(".quote").attr(".disabled", false);

I expect the button to be active but keeps telling me disabled is not a valid attribute.

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
  • 1
    Yes, that would be the expected outcome/error. Remove the dot before 'disabled'. That should then work. – Studocwho May 23 '19 at 20:20

1 Answers1

0

you need to use the .prop() function and remove the dot from .disabled like so...

$(".quote").prop("disabled", false);
jtylerm
  • 482
  • 4
  • 15