0

When I click on disabled select I get nothing. I need to do this without classes

 <select id="param" disabled></select>
$("#param").on("change click", function () {
    if ($(this).is(":disabled")) {
        console.log("disabled");
    } else {
        console.log("enabled");
    }
});
maplol
  • 51
  • 1
  • 8
  • 2
    [Disabled elements do not fire event handlers](https://stackoverflow.com/a/3100395/14956277). – D M Jan 09 '21 at 18:43
  • In addition to previous comment: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled – kosmos Jan 09 '21 at 18:48

0 Answers0