Is this possible to append a div "mydiv" to an area shape id like below:
<area id="one" shape="rect" coords="335,239,376,282" href="#" />
Is this possible to append a div "mydiv" to an area shape id like below:
<area id="one" shape="rect" coords="335,239,376,282" href="#" />
As area
is a self closing element, it can't hold other elements.
If you append a div to an area element, most browser will try and fix your error by adding a closing </area>
tag, and actually add the div inside, but it won't do much good, as the area tag only defines a certain space/area in an image, and a div has no place in an image, and the content won't be visible ?
In other words, no you can't do that!
$('#one').append('<div id="mydiv">Something in here</div>");
I believe something like this will do the trick.