If you want to concatenate strings in order to create selectors, don't
make them jQuery objects first. In other words, just do this:

    var row = ".flexigrid .bDiv #socios .trSelected:first";
    $(row + " td:first").css("color", "red");

Also, as long as your ID's are unique, which they should be, there's
no need to put anything in front of them in your selector, so you
should be able to shorten it like so:

    var row = "#socios.trSelected:first";
    $(row + " td:first").css("color", "red");

HTH,
Jason


On Nov 16, 11: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