laravel js 单选框与多选框按钮传值
单选框
let item = $('input[name=title]:checked').val();
多选框
let obj = document.dataForm.module; let ids = []; for (let i = 0; i < obj.length; i++) { if (obj[i].checked){ ids.push(obj[i].value) } }
js
html

单选框
let item = $('input[name=title]:checked').val();
多选框
let obj = document.dataForm.module; let ids = []; for (let i = 0; i < obj.length; i++) { if (obj[i].checked){ ids.push(obj[i].value) } }
js
html
