I am trying to set Radio Button Checked based on its text value
This is my HTML Code
<section class="trainers_listWrap">
<li><label class="mt-radio mt-radio-outline traine">
<input type="radio" data-value="One" class="trainerradio" value="62" name="trainernames">One
<span></span>
</label>
</li>
<li><label class="mt-radio mt-radio-outline traine">
<input type="radio" data-value="Two" class="trainerradio" value="9" name="trainernames">Two
<span></span>
</label>
</li>
<li><label class="mt-radio mt-radio-outline traine">
<input type="radio" data-value="THree" class="trainerradio" value="17" name="trainernames">THree
<span></span>
</label>
</li>
</section>
I have tried as (Trying to check Two Radio Button in the above HTML )
$('input:radio[name="trainernames"][value="Two"]').prop('checked', true);
This is my fiddle
http://jsfiddle.net/cod7ceho/376/
Could you please let me know how to set Radio button based on its text value