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)");
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
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
3 matches
Mail list logo