Hide elements other than the ones matched
See original GitHub issueHi, thanks for the handy library.
I have listings to search like this picture. As you can see, so much elements in there. Search successfully runs, however, in my case I want to hide parent element.
my find: '.row .col p',
works well for the targeted text to search, however I want not only hide p
element but the whole row
.
optional: is there a way to search in two elements ? say for example : find: ['.row .col p', '.row .col h3']
. (Probably I am asking too much for what is intended, excuse me for this)
thanks a lot !!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Hide all elements that don't have class matching selected ...
Try with this Code: $(document).ready(function() { $('input[type=radio][name="type"]').live('change', function() { var className ...
Read more >Comparing Various Ways to Hide Things in CSS
Method 2: The visibility property ... If an element's visibility property is set to hidden , then the element is “visually hidden.” Being...
Read more >8 Proper Ways to Hide Elements on Your Website With CSS ...
There are several ways to hide website elements via CSS. This tutorial shows you eight of them including how to elements on a...
Read more >.hide() | jQuery API Documentation
An object containing one or more of the CSS properties defined by the properties ... The matched elements will be hidden immediately, with...
Read more >How to show/hide div element depending multiple values ...
$(selector).hide(): This method hides the selected element. ... As check boxes are capable of taking more than one value at a time hence...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Glad you found a solution, I missed your messages! Hope you have a great time using Holmes 😃
all I had to do is to put the parent div. and everything inside is looked for and shown/hidden. so All is fine,
my bad, sorry for that.