Thanks,
I was wondering if that was the way I had to go.
Is find the fastest in terms of cpu cycles? It sounds like it might
not be by its name. That's why I didn't use it.
ml
On Jan 15, 3:20 pm, Wizzud <[EMAIL PROTECTED]> wrote:
> Use find()?
> The children() function (should) return "unique
BTW id attribute must be unique as i know... I know you can omit it but its
not fair.
OK. did you try to use contents( )?
something like this (untested) $('#obj').contents().filter('div').attr('id',
'Bob')?
On Jan 16, 2008 2:20 AM, Wizzud <[EMAIL PROTECTED]> wrote:
>
> Use find()?
> The children
Use find()?
The children() function (should) return "unique immediate children"
which won't get you your second level divs in a single call from the
#obj level, no matter what selector you use.
eg...
var obj = $("#obj");
obj.find(">.obj_level1>.obj_level2").attr( "id", "Bob" );
On Jan 15, 6:03
3 matches
Mail list logo