Checking which radio button was clicked on a cck form using Javascript or Jquery I have a content type which I am loading in a block as a form. I am looking to know which radio button out of 2 buttons was clicked so that I can display additional fields. What is the best way to achieve this using JavaScript?

&lt;div class="form-item"&gt;
 &lt;label&gt;I am: &lt;span class="form-required" title="This field is required."&gt;*&lt;/span&gt;&lt;/label&gt;
 &lt;div class="form-radios"&gt;&lt;div class="form-item" id="edit-field-org-or-part-value-organizer-wrapper"&gt;
 &lt;label class="option" for="edit-field-org-or-part-value-organizer"&gt;&lt;input type="radio" id="edit-field-org-or-part-value-organizer" name="field_org_or_part[value]" value="organizer"   class="form-radio" /&gt; Organizer&lt;/label&gt;
&lt;/div&gt;
&lt;div class="form-item" id="edit-field-org-or-part-value-participant-wrapper"&gt;
 &lt;label class="option" for="edit-field-org-or-part-value-participant"&gt;&lt;input type="radio" id="edit-field-org-or-part-value-participant" name="field_org_or_part[value]" value="participant"   class="form-radio" /&gt; Participant&lt;/label&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
If you want to have an 'other' type of field you could use: http://drupal.org/project/select_or_other

I maintain custom code to achieve what you want (on very long fake multistep forms) and don't recommend this, it quickly becomes very unmanageable.