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.
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.
you need to use the .prop() function and remove the dot from .disabled like so...
$(".quote").prop("disabled", false);