Bug or Stupidity?: jQuery, Imagemaps, and Dynamically Inserting Area Tags
Wednesday, November 12th, 2008I’ve run across something that is not making any sense to me.
The situation: I’ve got an empty imagemap that I want to dynamically enter area tags into with jQuery. I’ve been trying to insert them using .append() or even .html() and every time I attempt to do so nothing occurs. I can insert text or other tags, but no actual area tags.
Now, if I go oldschool and use document.getElementById(insertnamehere).innerHTML = “inserttagshere” that works. But every variation I can think of to use jQuery methods to add an area tag fails.
Can anyone think of anything obvious that I’m missing here?