Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <div class="container mt-3 mb-3">
  2. <div class="col-md-12">
  3. <h1><strong>BRICK WALL TRICKS</strong></h1>
  4. <ul class="live-search-list">
  5. <h2>
  6. <li class="list-group">
  7. <li><a href="#">Notes on “Breaking Through Brick Walls”</a</li>
  8. <li><a href="#">Brick Wall Case Study</a> </li>
  9. <li><a href="#">Using Circumstantial Evidence</a></li>
  10. </li>
  11. </h2>
  12. </ul>
  13. </div>
  14. </div>
  15.  
  16. jQuery(document).ready(function($){
  17. $('.live-search-list li').each(function(){
  18. $(this).attr('data-search-term', $(this).text().toLowerCase());
  19. });
  20. $('.live-search-box').on('keyup', function(){
  21. var searchTerm = $(this).val().toLowerCase();
  22. $('.live-search-list li').each(function(){
  23. if ($(this).filter('[data-search-term *= ' + searchTerm + ']').length > 0 || searchTerm.length < 1) {
  24. $(this).show();
  25. } else {
  26. $(this).hide();
  27. }
  28. });
  29. });
  30. });
  31. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement