$("input:checkbox[name='test']:checked").each(function() { // 遍历name=test的多选框 $(this).val(); // 每一个被选中项的值 });
相关网站:
http://zhidao.baidu.com/link?url=Muyzhr7MyUvLOQ4WD-gCirXHW-P1aHEg7ISFaRi6DIQ--5JFJzHP42-CO9BfkK4xQadSI_B2dQAESSJw1s5jxa
$("input:checkbox[name='test']:checked").each(function() { // 遍历name=test的多选框 $(this).val(); // 每一个被选中项的值 });
相关网站:
http://zhidao.baidu.com/link?url=Muyzhr7MyUvLOQ4WD-gCirXHW-P1aHEg7ISFaRi6DIQ--5JFJzHP42-CO9BfkK4xQadSI_B2dQAESSJw1s5jxa