Guest User

Untitled

a guest
Jan 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <asp:Repeater ID="Repeater1" runat="server" DataSource="<%# GetSecondAreas(CurrentLocationName) %>">
  2. <HeaderTemplate>
  3. <ul>
  4. </HeaderTemplate>
  5. <ItemTemplate>
  6. <li class="area">
  7. <input type="checkbox" class="category" value="<%# string.Concat(CurrentLocation.Area1,"| ", CurrentLocation.Area2)%>" />
  8. <label>
  9. <%#CurrentLocation.Area2%>
  10. </label>
  11. <asp:Repeater ID="Repeater2" runat="server" DataSource="<%# GetThirdAreas(CurrentLocation.Area2) %>">
  12. <HeaderTemplate>
  13. <ul>
  14. </HeaderTemplate>
  15. <ItemTemplate>
  16. <li>
  17. <input type="checkbox" class="category" value="<%#string.Concat(CurrentLocation.Area1,"| ", CurrentLocation.Area2,"| ", CurrentLocation.Area3)%>" />
  18. <label id="last">
  19. <%#CurrentLocation.Area3%>
  20. </label>
  21. </li>
  22. </ItemTemplate>
  23. <FooterTemplate>
  24. </ul>
  25. </FooterTemplate>
  26. </asp:Repeater>
  27. </li>
  28. </ItemTemplate>
  29. <FooterTemplate>
  30. </ul>
  31. </FooterTemplate>
  32. </asp:Repeater>
  33.  
  34. function updateByArea(current) {
  35. //If current is unchecked => uncheck all child checkboxes
  36. if (current.attr("checked") == null || current.attr("checked") == "")
  37. $j(".area ul li input[value^='" + current.val() + "']:checked").removeAttr("checked").hide(); //checkbox
  38. $j('label[id="id_val"]').hide();
  39. $j("#searchFilter .area>input:checkbox:checked").each(function (i, item) {
  40. $j(".area ul li input[value^='" + $j(item).val() + "']:not(:checked)").attr("checked", "checked").show(); //checkbox
  41. $j('label[id="id_val"]').show();
  42. });
  43.  
  44. .hide();
  45.  
  46. .parent().hide();
Add Comment
Please, Sign In to add comment