html - button disabled prop not working in Firefox -
i have button "disabled" attribute, enable using jquery when conditions met. problem firefox doesn't read "disabled" attribute, though chrome&ie have no problem.
my code <button disabled type="button" class="btn btn-secondary button_confirm" title="title here">confirm</button>
i tried disabled=true , disabled=disabled nothing seems work.
can please help? thank you.
i believe problem not disabled property isn't read firefox, you're not modifying using jquery.
if using jquery < 1.6, change attribute using command:
$('.button_confirm).attr("disabled", 'disabled'); if using jquery >= 1.6, change attribute using command:
$('.button_confirm).prop("disabled", true);
Comments
Post a Comment