change all ids in $.html() (or better ie7 clone alternative)

JacklynCapoq

New Member
After much banging my head against the wall, I found this: http://bugs.jquery.com/ticket/9777 Yay!My problem is that when I \[code\]$.clone()\[/code\] an element in ie7 and try to change all \[code\]id\[/code\]s with \[code\]$myClonedElement.find("*[id]").andSelf().each(function() { $(this).attr("id", $(this).attr("id") + "-" + idNumberVariableForDynamicDatabasePagination); });\[/code\], the \[code\]id\[/code\]s for the clone also change.I'm guessing I should use \[code\]$.html()\[/code\] instead (if you have a better alternative, please suggest it), and append \[code\]'-' + idNumberVariableForDynamicDatabasePagination\[/code\] to each \[code\]id\[/code\].How can I do this?
 
Back
Top