ITeye博客

indeterminate 多选框半选功能

arne3166 · 2011-03-17 12:05 · 代码搜集 · Web前端 · Markdown

document.getElementById("total").indeterminate = true;

 对于多选框实现半选的功能。

 

多选框的功能:可以表示该项目是选中还是没有选中,但是为了表示父节点下某些子节点没有勾选,但某些节点已经被选中,因此使用indeterminate 表示半选。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。