Thursday, October 1, 2009

[jQuery] Re: How to manipulate an object containaing HTML

2009/10/1 Julien <tuxmux@gmail.com>

Hello,

i'm trying to find out how to edit (manipulate DOM) of an HTML ajax
result.

returns rows of a table :

<tr>
 <td></td>
 <td></td>
</tr>
<tr>
 <td></td>
 <td></td>
</tr>

What i would like to do is before appending to the table something
like that :

$(html).$("td").css('padding-left','80px');

I am curious too, to know the best way to manipulate DOM in objects.
In Julien's example how to add class at TD elements ?
Thanks for you help.
Cyril


No comments: