How can I enable a specific textfield using a radio button?
<p>I want to enable an 'other text' field when the 'option other' radio button is selected.  I can make this work but the form must include more than one radio group.  When I try to add another radio group my code causes both text fields to be enabled.</p>

<p>How do I make this work for just one at a time?  I looked at adding :eq() to the class but I can't figure out how to make that work.  Any help is appreciated.</p>

<pre><code>&lt;script&gt;
  $(document).ready(function() {
    $('.textclass').attr({disabled:true,enabled:false});
    $('.radclass.can').click(function(){
  $('.textclass').attr({disabled:false,enabled:true});
});
    $('.radclass.cant').click(function(){
  $('.textclass').attr({disabled:true,enabled:false});
});
  });
&lt;/script&gt;

&lt;form name="form1" method="post" action="next.php"&gt;
&lt;input type="radio" name="grp_one" class="radclass cant" value="option_one" /&gt;Option          One&lt;br /&gt;
&lt;input type="radio" name="grp_one" class="radclass cant" value="option_two" /&gt;Option Two&lt;br /&gt;
&lt;input type="radio" name="grp_one" class="radclass can" value="option_other" /&gt;Option Other&lt;br /&gt;
Other Text: &lt;input type="text" name="text_one" class="textclass"/&gt;
&lt;br /&gt;
&lt;input type="radio" name="grp_two" class="radclass cant" value="option_one" /&gt;Option One&lt;br /&gt;
&lt;input type="radio" name="grp_two" class="radclass cant" value="option_two" /&gt;Option Two&lt;br /&gt;
&lt;input type="radio" name="grp_two" class="radclass can" value="option_other" /&gt;Option Other&lt;br /&gt;
Other Text: &lt;input type="text" name="text_two" class="textclass"/&gt;
&lt;br /&gt;
&lt;input type="submit" name="submit" value="submit"&gt;
&lt;/form&gt;
</code></pre>
