Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container mt-3 mb-3">
- <div class="col-md-12">
- <h1><strong>BRICK WALL TRICKS</strong></h1>
- <ul class="live-search-list">
- <h2>
- <li class="list-group">
- <li><a href="#">Notes on “Breaking Through Brick Walls”</a</li>
- <li><a href="#">Brick Wall Case Study</a> </li>
- <li><a href="#">Using Circumstantial Evidence</a></li>
- </li>
- </h2>
- </ul>
- </div>
- </div>
- jQuery(document).ready(function($){
- $('.live-search-list li').each(function(){
- $(this).attr('data-search-term', $(this).text().toLowerCase());
- });
- $('.live-search-box').on('keyup', function(){
- var searchTerm = $(this).val().toLowerCase();
- $('.live-search-list li').each(function(){
- if ($(this).filter('[data-search-term *= ' + searchTerm + ']').length > 0 || searchTerm.length < 1) {
- $(this).show();
- } else {
- $(this).hide();
- }
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement