I'm using a javascript syntax highlighter (http://alexgorbatchev.com/SyntaxHighlighter/). I think this one is very famous.
in my js, I use ajax to get code samples and then initialize syntax highlighter. When I call the same ajax call with a different parameter, it returns a different code sample. The problem is that I can't replace syntax highlighter's content. I looked up its API list, but I can't find an API to update or replace its content.
Please advise me.
:PJust wrap your content in another DIV.wrapper.innerHTML = '';), all those elements are garbage collected.