layui 获取radio单选框选中的值

<div class="layui-form-item">
     <label class="layui-form-label" style="100px">是否已购买:</label>
     <div class="layui-input-block" id="IsPurchased">
           <input type="radio"  name="t" value="" title="" />
           <input type="radio"  name="t" value="" title="" />
     </div>
</div>


//IsPurchased: $('#IsPurchased input[name="t"]:checked ').val()//获取选中的值
原文地址:https://www.cnblogs.com/shy1766IT/p/11375043.html