CheckBoxList两列并排编译为表格显示具体实现

云南的天空有一种静谧之美,在这片土地上就连时间都流淌得格外缓慢。东方刚露出第一抹红霞,小河像一位刚梳洗完毕的姑娘,对着镜子整理晨妆,面颊上飞出几片羞答答的红晕。
 
<asp:CheckBoxList ID="DDLGroups" runat="server" RepeatLayout="Table" RepeatColumns="2" RepeatDirection="Horizontal" style="border-collapse:collapse; line-height:18px;margin-left:2px;">
</asp:CheckBoxList>

 
<style type="text/css">
#DDLGroups{border-collapse:collapse; line-height:18px}
#DDLGroups td{width:300px; border:1px solid #F0F8FF;padding-left:5px}
</style>

获取所选值:
 
//获取联系人组
$("#DDLGroups tbody tr td input:checkbox:checked").each(function () {
alert($(this).parent().find("label").html())
});

以上就是CheckBoxList两列并排编译为表格显示具体实现。突然发现,这个世界只要自己开心了,就他妈瞬间变得美好了。更多关于CheckBoxList两列并排编译为表格显示具体实现请关注haodaima.com其它相关文章!

您可能有感兴趣的文章
asp.net源程序编译为dll文件并调用的实现过程

gridview和checkboxlist的嵌套相关应用

使CheckBoxList的Attributes属性生效(修改微软的一个bug)