I am using google map api. I wrote the code below.
<div id="map"></div>
And I use the google chrome console to see the content of $("div#map").
console.log($("div#map"));
The result is:
[
<div id="map" style="width: 1218.222222328186px; position: relative; background-color: rgb(229, 227, 223); overflow: hidden; -webkit-transform: translateZ(0); ">
<div style="position: absolute; left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%; z-index: 0; ">…</div>
</div>
]
How can I get the innerHTML :
<div style="position: absolute; left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%; z-index: 0; ">…</div>
I tried $("div#map > div"), but there is nothing returned.
Why? Is it because the innerHTML generated by Javascript?
How can I get it and insert another div into the div above?
Thank you very much.