复选框里面tip效果的问题,请帮看下!
function checkAll(ckObj, obj) { if (obj.checked) { for (var i = 0; i < document.getElementById(ckObj).getElementsByTagName("input").length; i++) { document.getElementById(ckObj + "_" + i).checked = true; } } else { for (var i = 0; i < document.getElementById(ckObj).getElementsByTagName("input").length; i++) { document.getElementById(ckObj + "_" + i).checked = false; } }}
<asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table"></asp:CheckBoxList>
string text = "name"; string valueStr = "id"; ListItem li=new ListItem(text,valueStr); li.Attributes.Add("title", strText); CheckBoxList1.Items.Add(li);