So, I have this jQuery which will switch to some radio buttons on the page. I want this to be the case when someone clicks on one of the switches, the rest do not click. Currently, as I have, they can choose 3 at a time, and I need it to act like a regular radio button that was clicked on, and the rest werenβt
JQuery
$(function () { $('.box-ul .btn .dot').click(function () { $(this).toggleClass('clicked'); }); });
HTML:
<div class="box-ul box-video right"> <ul> <li><span class="yes"></span><p>Easy to Use</p></li> <li><span class="yes"></span><p>Step by Step<br /><span>details instructions</span></p></li> <li><span class="yes"></span><p>Setup time<br /><span>under 30 mins</span></p></li> <li class="btn btn-expanded"> <div class="btn-t"> <span class="dot left"></span> <p class="left">Expanded<br /> <span>This is the extend button It has space for slightly more info.</span> </p> <div class="cl"> </div> </div> </li> <li class="btn"> <div class="btn-t"> <span class="dot left"></span> <p class="left">Green Doggies</p> <div class="cl"> </div> </div> </li> <li class="btn"> <div class="btn-t"> <span class="dot left"></span> <p class="left">Email Support</p> <div class="cl"> </div> </div> </li> </ul> </div>
Trace source share