[jQuery] Re: Its possible to do this??

2008-11-16 Thread Kean
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. $(

[jQuery] Re: Its possible to do this??

2008-11-16 Thread ricardobeat
That's not always right: in case you're going to reuse that main selector a lot, it's better to make it a jQuery object so you don't need to redo the first part of the query every time. cheers, - ricardo On Nov 16, 6:27 pm, Jason Huck <[EMAIL PROTECTED]> wrote: > If you want to concatenate strin

[jQuery] Re: Its possible to do this??

2008-11-16 Thread Jason Huck
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

[jQuery] Re: Its possible to do this??

2008-11-16 Thread Mauricio (Maujor) Samy Silva
Try the core jQuery function: jQuery(expression, [context]) http://docs.jquery.com/Core/jQuery#expressioncontext $('td:first', row).css('color', 'red'); Maurício Hi. I am new with jQuery, and i want to know if its possible to do the follow. var row = $(".flexigrid .bDiv #socios .trSelected