js:$("input:checkbox[na ; 更新日期:2024/9/25 饿虎岗资源网" />

当前位置:首页 >> 网络编程

layui获取多选框中的值方法

HTML:

<input type="checkbox" name="standard" value="<" <"<">

js:

$("input:checkbox[name='standard']:checked").each(function() { // 遍历name=standard的多选框
  standards += ',' + $(this).val();
  standardsName += ',' + $(this).attr('title');
});

以上这篇layui获取多选框中的值方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。