`
v5browser
  • 浏览: 1138591 次
社区版块
存档分类
最新评论

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())
        });




分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics