如题 复选框在 li 中 li是动态生成的
<li class="mui-table-view-cell mui-checkbox mui-left" style="height: 55px;">
<div class="lidiv">
<img src="../../images/head.jpg " class="liimg" />
<input name="checkbox" type="checkbox">
<div class="lidiv2">张三</div>
</div>
</li>
<li class="mui-table-view-cell mui-checkbox mui-left" style="height: 55px;">
<div class="lidiv">
<img src="../../images/head.jpg " class="liimg" />
<input name="checkbox" type="checkbox" >
<div class="lidiv2">张三</div>
</div>
</li>
<li class="mui-table-view-cell mui-checkbox mui-left" style="height: 55px;">
<div class="lidiv">
<img src="../../images/head.jpg " class="liimg" />
<input name="checkbox" type="checkbox" >
<div class="lidiv2">张三</div>
</div>
</li>
和尚丶
- 发布:2015-04-21 09:53
- 更新:2015-04-21 13:19
- 阅读:2425
JS如何限定复选框只能选两个
分类:MUI
和尚丶 (作者)
前两步进行了,最后一步 阻止默认事件写不好呢
2015-04-21 13:47