Let me see. I would try the following

var row = $(".flexigrid .bDiv #socios .trSelected:first");

1. $(row).find("td:first-child").css("color", "red");
2. row.find("td:first-child").css("color", "red");

3.
$(row).each(function(){
   $(this).find("td:first-child").css('color', 'red');
});


4.
$(row).each(function(){
   $(this).find("td:eq(0)").css('color', 'red');
});

5. $('td:first-child', row).css('color', 'red');

6. $(".flexigrid .bDiv #socios .trSelected:first td:first-child);

7 . $(row).find("td:nth-child(1)").css("color", "red");

8.  row.find("td:nth-child(1)").css("color", "red");

9.
$(row).each(function(){
   $(this).find("td:nth-child(1)").css('color', 'red');
});

Well, I don't recommend
:first and eq(0)  <------------ this means well from the bunch of DOM
nodes I get, return the first one

instead consider using
:first-child and nth-child <---------- this mean well from the bunch
of DOM nodes I get, return those who are the first child of their
parent

There are many ways to do this and choose the one that's the least
expensive, meaning :first or eq(0) might be used depending of the
circumstances

On Nov 16, 8:30 am, SoutlinK <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I am new with jQuery, and i want to know if its possible to do the
> follow.
>
> var row = $(".flexigrid .bDiv #socios .trSelected:first");
> $(row + " td:first").css("color", "red");
>
> Or something like that.
>
> I mean.
>
> I have a row selected in jQuery. Now I want to go for each column, of
> this row without do this
> var col0 = $(".flexigrid .bDiv #socios .trSelected:first td:eq(0));
>
> Thanks

Reply via email to