DESPERATE Request - jQuery tag suggestion, How is it inserting the DOM Element SPAN?
Posted
by nobosh
on Stack Overflow
See other posts from Stack Overflow
or by nobosh
Published on 2010-03-18T04:14:38Z
Indexed on
2010/03/18
4:21 UTC
Read the original article
Hit count: 440
Take a look at this snazy plugin: http://remysharp.com/2007/12/28/jquery-tag-suggestion/ ** it's real small Source: http://remysharp.com/downloads/tag.js
For the life of me, I can't figure out where in the plugin JS the code is injecting the SPAN which contains the tags...
I see the following around line 73:
var tagMatches = document.createElement(settings.tagContainer);
But where is it injecting it into the doc? I ask because I need to find a way to control where it goes based on an ID, something like this:
document.body.insertBefore(newDiv, my_div);
Thanks so much, and good luck, It's tricky!
© Stack Overflow or respective owner