Geeks With Blogs

News
Google

Aaron Li's Blog Write it down before I forget June 2007 Entries
Checkbox Counter and JavaScript
Scenario: I have a repeater with people’s name listed. Next to every name, there is a checkbox used to select people. Every time, only 2 people can be selected. HTML portion, <asp:Repeater ID="Repeater1" runat="server" EnableViewState = "false"> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" onclick="CheckedChanged(thi... /> <%#Eval("Name")%> </ItemTemplate> </asp:Repeater> <input id="TotalChecked" type="hidden" value="0"/> Javascript ......

Posted On Sunday, June 17, 2007 6:59 PM

Copyright © Aaron Li | Powered by: GeeksWithBlogs.net