Whoops, submitted too soon.
My thoughts on the matter are that you could pass the html string of the tiddler to Jquery to get a jQuery object:
jQuery('#contentWrapper').delegate(".addButton", "click", function(){
addRow(jQuery(this));
});
In the addRow function I'd get the parent id of the addButton
function addRow(thisButton){
buttonParentID = thisButton.parent().attr('id');
};
I'd find the respective id in the jQuery object derived derived from the tiddler's pre-rendered HTML section. (and this is where it breaks down for me using this method)
?? maybe something like: ??
jQuery("buttonparentID",tiddlerHtmlJqueryObj).clone().insertAfter(jQuery(buttonParentID));
then:
1. replace the section with this output
2. use refreshTiddler to re-render
3. add events to the new elements if neccessary