Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:Repeater ID="Repeater1" runat="server" DataSource="<%# GetSecondAreas(CurrentLocationName) %>">
- <HeaderTemplate>
- <ul>
- </HeaderTemplate>
- <ItemTemplate>
- <li class="area">
- <input type="checkbox" class="category" value="<%# string.Concat(CurrentLocation.Area1,"| ", CurrentLocation.Area2)%>" />
- <label>
- <%#CurrentLocation.Area2%>
- </label>
- <asp:Repeater ID="Repeater2" runat="server" DataSource="<%# GetThirdAreas(CurrentLocation.Area2) %>">
- <HeaderTemplate>
- <ul>
- </HeaderTemplate>
- <ItemTemplate>
- <li>
- <input type="checkbox" class="category" value="<%#string.Concat(CurrentLocation.Area1,"| ", CurrentLocation.Area2,"| ", CurrentLocation.Area3)%>" />
- <label id="last">
- <%#CurrentLocation.Area3%>
- </label>
- </li>
- </ItemTemplate>
- <FooterTemplate>
- </ul>
- </FooterTemplate>
- </asp:Repeater>
- </li>
- </ItemTemplate>
- <FooterTemplate>
- </ul>
- </FooterTemplate>
- </asp:Repeater>
- function updateByArea(current) {
- //If current is unchecked => uncheck all child checkboxes
- if (current.attr("checked") == null || current.attr("checked") == "")
- $j(".area ul li input[value^='" + current.val() + "']:checked").removeAttr("checked").hide(); //checkbox
- $j('label[id="id_val"]').hide();
- $j("#searchFilter .area>input:checkbox:checked").each(function (i, item) {
- $j(".area ul li input[value^='" + $j(item).val() + "']:not(:checked)").attr("checked", "checked").show(); //checkbox
- $j('label[id="id_val"]').show();
- });
- .hide();
- .parent().hide();
Add Comment
Please, Sign In to add comment