Select which radio button is selected based on Name and Value
<p>I'm working on a pretty basic show/hide script and am basing it on which of the two radio buttons below are checked. My problem is that I can't add id's to the radio buttons, as the code is dynamically generated. Is there any way using JQuery to select which box is checked based on the combination of the name and value? Once I have that IF statement I can handle the rest, but I only know how to do it using classes or ID's.</p>

<pre><code>&lt;span class="wpcf7-form-control-wrap mysql"&gt;
   &lt;span id="mysql" class="wpcf7-form-control wpcf7-radio radiobuttons"&gt;
      &lt;span class="wpcf7-list-item"&gt;
         &lt;label&gt;
            &lt;span class="wpcf7-list-item-label"&gt;Yes&lt;/span&gt;
            &amp;nbsp;
            &lt;input type="radio" name="mysql" value="Yes"&gt;
         &lt;/label&gt;
      &lt;/span&gt;
      &lt;span class="wpcf7-list-item"&gt;
         &lt;label&gt;
            &lt;span class="wpcf7-list-item-label"&gt;No&lt;/span&gt;
            &amp;nbsp;
            &lt;input type="radio" name="mysql" value="No"&gt;
         &lt;/label&gt;
      &lt;/span&gt;
   &lt;/span&gt;
&lt;/span&gt;
</code></pre>

<p>So basically I am looking for something like "if the name is mysql, the value is Yes, and the radio button is checked, do X. If the name is mysql, the value is No, and the radio button is checked, do Y.</p>

<p>Thanks in advance.</p>
