title: Enable or Disable selectboxes with radio buttons
body: <p>I have set of radio buttons and set of select boxes dynamically generated through PHP code but I am using same class name for the respective radio button and select box like.</p>
  
  <pre><code>&lt;input type="radio" name="selop" class="1111" /&gt;
  &lt;select name="selval" class="1111"&gt;&lt;options&gt;&lt;!--All options--&gt;&lt;/options&gt;&lt;/select&gt;
  &lt;input type="radio" name="selop" class="2222" /&gt;
  &lt;select name="selval" class="2222"&gt;&lt;options&gt;&lt;!--All options--&gt;&lt;/options&gt;&lt;/select&gt;
  &lt;input type="radio" name="selop" class="3333" /&gt;
  &lt;select name="selval" class="3333"&gt;&lt;options&gt;&lt;!--All options--&gt;&lt;/options&gt;&lt;/select&gt;
  &lt;input type="radio" name="selop" class="4444" /&gt;
  &lt;select name="selval" class="4444"&gt;&lt;options&gt;&lt;!--All options--&gt;&lt;/options&gt;&lt;/select&gt;
  </code></pre>
  
  <p>In my case the name for all the radios and the name of all select boxes are same and class names for each set are same.</p>
  
  <p>I want like if some one checked the a radio the select box of same class should be enabled and rest should be disabled.</p>
  
  <p>I tried this way which didn't work for me.</p>
  
  <pre><code>var $radio = $('input[name=selop]:checked');
  var cname = $radio.attr('class');
  var classname = "." + cname;
  $(classname).removeAttr('disabled');
  </code></pre>