layui中使用jquery控制radio选中事件的示例代码
时间:2021-05-09 07:42:33|栏目:JavaScript代码|点击: 次
勾选
form.on('radio(yesHave)', function (data) {
$("input[name='hasPrepaidVoucher'][title='有']").attr('checked',true);
form.render();
});
取消勾选
form.on('radio(noIssuer)', function (data) {
debugger;
$("input[name='voucherIssuer']").removeAttr('checked');
form.render();
});
上一篇:jstree中的checkbox默认选中和隐藏示例代码
栏 目:JavaScript代码
本文标题:layui中使用jquery控制radio选中事件的示例代码
本文地址:http://www.codeinn.net/misctech/117518.html






