jquery addclass and radio button handling
<p>I'm having some trouble.  I'm trying to add a class according to what value the option selected has.</p>

<p>I thought this would work.</p>

<pre><code>  if ($("input#field_24").val() == "patient") {
  $("div[id*='-form'] input#field_25").addClass(" required");
  }
</code></pre>

<h2>EDIT</h2>

<p><a href="http://jsfiddle.net/AlienWebguy/C7Gg3/1/" rel="nofollow">Solution</a></p>

<p>Sorry to have added a similar question.  This answered mine.</p>

<p>Thanks!</p>
