Is it possible to give focus to a parent div that contains a child div without hiding the child div?
I am integrating the Google Maps API and need to overlay a grid of transparent divs for inserting information. However, with these divs on top of my map, I am unable to drag the map.
While I know it can be done using the API, I am looking for a solution that works regardless of what I am working on top of.
<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 have experimented with JQuery's .focus()
method but haven't been successful. Any suggestions are greatly appreciated!