How to get html untouched by jquery?
I am using jtemplate to add new TR portion to a table, since the TR part is in a loop, I cannot add a new element and then process template on it, otherwise it will intro a new DIV which I don't want. So I set template on a temp DIV and after process template, I read out the result and insert it into the table.
Now the problem is when I get the processed result, jQuery add tbody to it, for example, the template is like
{#foreach $T.dlist as row}
<tr><td>....</td></tr>
{!/for}
after I process template, the result I get is like <tbody><tr>.. or some other strange html with extra <tbody> or </tbody>
Any idea I have overcome that?
Thanks