I want to be able to retrieve all checkboxes that are disabled and add a style/background to the containing TD table cell. I can select all checkboxes and change the background as follows:
$(':checkbox').closest("td").css('background-color', '#FF0000');
I just need to update this so that it applies to only disabled items.
You can use
:disabledselector:Note that
:checkboxselector has been deprecated, the alternative is attribute selector.You can also use
hasmethod: