I have containers with several lines, but only the first view ( overflow:hidden). The container expands on click. ( https://stackoverflow.com/questions/303088/... and jsFiddle http://jsfiddle.net/JUtcX/2/ )
If someone executes Ctrl + F with text from invisible lines, the browser reports a match, but cannot show it (because it is hidden).
How can I react to Ctrl + F and open the container, was there a search for invisible text in it?
[Update] Approaches that do not meet all the requirements:
- Listening Ctrl + F.
- I have several containers and you only want to expand the ones that contain the search phrase. When listening to Ctrl + F, I could immediately open all the containers.
- It does not work on all systems. However, this is a minor defect.
- Workaround for Chrome ( link )
- At least Firefox must be supported
source
share