<div class="row">
<table>
<thead><tr><th>操作</th></tr></thead>
<tbody>
<tr>
<td>
<input type="radio" name="3" value="Update" />覆盖
<input type="radio" name="3" value="Insert" />更新
<input type="radio" name="3" value="Cancel" />取消
</td>
</tr>
<tr>
<td>
<input type="radio" name="2" value="Update" />覆盖
<input type="radio" name="2" value="Insert" />更新
<input type="radio" name="2" value="Cancel" />取消
</td>
</tr>
<tr>
<td>
<input type="radio" name="5" value="Update" />覆盖
<input type="radio" name="5" value="Insert" />更新
<input type="radio" name="5" value="Cancel" />取消
</td>
</tr>
</tbody>
</table>
<input type="button" ]:checked').each(function (i, val) {
insertIds += val.name + ';';
});
alert('Update:'+updateIds);
alert('Insert:'+insertIds);
});
</script>
相关文章: