标签:style blog io ar color sp for on div
JS代码:
1 var listbox = document.getElementById("<%=lbCustom.ClientID %>"); 2 var values = ""; 3 if (listbox.options.length > 0) { 4 for (var i = 0; i < listbox.options.length; i++) { 5 values += listbox.options[i].value; 6 values += ","; 7 } 8 } 9 values = values.replace(/,$/, "");//消除最后一个,
aspx代码:
1 <asp:ListBox ID="lbCustom" runat="server" Height="310px" Width="210px" SelectionMode="Multiple" ></asp:ListBox>
标签:style blog io ar color sp for on div
原文地址:http://www.cnblogs.com/wanshi1989/p/4161486.html