[jQuery] Re: Click Radio Buttons to Disable/Enable a Text Box

2008-04-03 Thread Gorkfu
I fixed the problem. Code works like a charm now. I changed this line: var radio = $this.siblings("[EMAIL PROTECTED]"); To this: var radio = $this.siblings("[EMAIL PROTECTED]:eq(0)");

[jQuery] Re: Click Radio Buttons to Disable/Enable a Text Box

2008-04-03 Thread Gorkfu
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.sibli

[jQuery] Re: Click Radio Buttons to Disable/Enable a Text Box

2008-04-02 Thread Karl Rudd
Use .attr('disabled', true) and .attr('disabled', false) to set the 'disabled' state of form elements. It's one of those things that works in a way you don't quite expect, if you're thinking of it from an HTML perspective. After a form element is parsed in from HTML the attributes like 'disabled