I use the following to disable all form elements within a table row:
$(".chkbx").change(function(){ var $this = $(this); if ($this.is(":checked")) { $this.closest("tr").find(":input").attr("disabled", false); } else { $this.closest("tr").find(":input").attr("disabled", true); } }); Which it does great. The problem -- it disables ALL, including .chkbx. I need to keep the checkbox with this class (chkbx) always enabled. How do I exclude it from the function?
$this.closest("tr").find(":input:not(.chkbx)")? Or$this.closest("tr").find(":input").not('.chkbx')?