$("div.z td").addClass("hello");

Note that this would add the class to all the td's that resides within
<div class="z">.

On May 14, 1:15 pm, Adolfo <aforo...@yahoo.com> wrote:
> I have a series of td's that reside within a nested div. the <td> has
> no class value and I would like to inject a css class value.
>
> <div class=x>
>      <div class=y>
>           <div class=z>
>               <table><tr>
>                  <td>x</td> want a class in these tds
>
> how can I do this with jquery?

Reply via email to