If I have a parent div that contains a child div on top of it, can I give the parent div focus without hiding the child div?
I use the Google Maps API and would like to draw a grid of transparent divs on top to insert information, however, with all these small divs on the top of my map, I cannot drag the map.
I'm sure I can do this using the API, but it seems like I would like to do this no matter what I'm working on.
<div style="position: relative; width: 100px; height: 100px;" id="wanttofocus"> <div style="position: absolute; width: 100px; height: 100px;" id="want_to_see_but_dont_want_to_focus_on">Some overlay information</div> </div>
I am using jQuery and confused with .focus()
, but this did not work.
THANKS!
source share