Ok the code I posted below works great except for one issue. When the text field is disabled, the code also disables the text field that is right after it, which I don't want being disabled. The script sees both as a sibling which I don't want.
So my question is; How can I make this, "$this.siblings("[EMAIL PROTECTED]");" where it only looks for the first instance and ignores the second? --- code --- $(function() { function isChecked1() { var $this = $(this); var radio = $this.siblings("[EMAIL PROTECTED]"); if ($this.is(":checked")) radio.attr('disabled', true); } function isChecked2() { var $this = $(this); var radio = $this.siblings("[EMAIL PROTECTED]"); if ($this.is(":checked")) radio.attr('disabled', false); } $(':[EMAIL PROTECTED]') .click(isChecked1) .each(isChecked1); $(':[EMAIL PROTECTED]') .click(isChecked2) .each(isChecked2); }); --- code ---