我在表单中使用了多组单选按钮。它看起来像这样:
<input name='project[0]' type='radio' />
<input name='project[0]' type='radio' />
<input name='project[0]' type='radio' />
<input name='project[1]' type='radio' />
<input name='project[1]' type='radio' />
<input name='project[1]' type='radio' />
我也可以使用以下语法:
<input name='project_0' type='radio' />
<input name='project_0' type='radio' />
<input name='project_0' type='radio' />
<input name='project_1' type='radio' />
<input name='project_1' type='radio' />
<input name='project_1' type='radio' />
如何检查是否使用 jQuery 检查了每组按钮?