在多选框中嵌入单选按钮

时间:2011-11-04 19:50:04

标签: javascript jquery html

有没有办法(使用html / jquery)我可以在多选列表的选项中嵌入单选按钮?

例如: <select multiple>
<option>USA
<input type="radio" name="subregion" value="dma">DMA
<input type="radio" name="subregion" value="states">States
</option>
<option>Canada
<input type="radio" name="subregion" value="dma">DMA
<input type="radio" name="subregion" value="provinces">Provinces
</option>
...
...
...
...
</select>

1 个答案:

答案 0 :(得分:1)

您无法在SELECT中嵌套其他HTML元素。如果这是您真正需要的功能,请考虑使用基于DIV的下拉替换。