I'm implementing a window with the ThickBox plugin to add/view/edit comments.
When the comment is being viewed, clicking an 'edit' button (in the TB window) should modify it to edit mode. I have a hidden <div> whose child elements I identify by ID, set, then pass the <div> to TB as inline content. TB then just copies the HTML to itself. This causes a problem because I wish this transition from view -> edit mode to occur without closing and opening the TB window, but because the HTML is being copied I cannot access the nodes by ID, seeing as IDs are supposed to be unique in a page. Once the user has finished with the edit mode they click 'save' -- the click() handler for this finds the elements by ID again (which always ends up finding the originals, not the copies, of course) and submits them via $.post How can I get around this issue? Should I use classes instead? Do I need to hack up ThickBox a little? TIA, --rob ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/