question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hide elements other than the ones matched

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Haroenvcommented, May 14, 2021

Glad you found a solution, I missed your messages! Hope you have a great time using Holmes 😃

1reaction
bacloud23commented, May 13, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found