Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get Text of radio button instead of value using jQuery?
    text
    copied!<p>This is the code generated by the software</p> <pre><code>&lt;div id="cred_form_3584_1_wpcf-ticket-month-or-course-radios" class="myzebra-radios"&gt; &lt;div class="myzebra-radios-single"&gt; &lt;label class="myzebra-style-label"&gt; &lt;input id="cred_form_3584_1_wpcf-ticket-month-or-course_wpcf-fields-radio-option-a6da15467aeb84f539c0dc1cd766ccd6-2" class="myzebra-control myzebra-radio myzebra-prime-name-wpcf-ticket-month-or-course" type="radio" checked="checked" value="wpcf-fields-radio-option-a6da15467aeb84f539c0dc1cd766ccd6-2" name="wpcf-ticket-month-or-course"&gt; &lt;span class="myzebra-radio-replace"&gt;&lt;/span&gt; &lt;/label&gt; &lt;label id="cred_form_3584_1_label_wpcf-ticket-month-or-course_wpcf-fields-radio-option-a6da15467aeb84f539c0dc1cd766ccd6-2" for="cred_form_3584_1_wpcf-ticket-month-or-course_wpcf-fields-radio-option-a6da15467aeb84f539c0dc1cd766ccd6-2"&gt;per month&lt;/label&gt; &lt;/div&gt; &lt;div class="myzebra-radios-single"&gt; &lt;label class="myzebra-style-label"&gt; &lt;input id="cred_form_3584_1_wpcf-ticket-month-or-course_wpcf-fields-radio-option-f63eb739e2a6499a882c8e82aa35b028-1" class="myzebra-control myzebra-radio myzebra-prime-name-wpcf-ticket-month-or-course" type="radio" value="wpcf-fields-radio-option-f63eb739e2a6499a882c8e82aa35b028-1" name="wpcf-ticket-month-or-course"&gt; &lt;span class="myzebra-radio-replace"&gt;&lt;/span&gt; &lt;/label&gt; &lt;label id="cred_form_3584_1_label_wpcf-ticket-month-or-course_wpcf-fields-radio-option-f63eb739e2a6499a882c8e82aa35b028-1" for="cred_form_3584_1_wpcf-ticket-month-or-course_wpcf-fields-radio-option-f63eb739e2a6499a882c8e82aa35b028-1"&gt;per course&lt;/label&gt; &lt;/div&gt; </code></pre> <p>Using this code:</p> <pre><code>alert($('input[@name="myzebra-radios-single"]:checked').text()); </code></pre> <p>I get the value but not the text. How do I get the text (e.g per month) instead?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload