[jQuery] Re: array method on a jQuery object: deleting, adding elements

2008-07-14 Thread wolf
hm funny but i can't confirm that add and filter work as expected (not what i expected, at least). i have a website open in ffx2 / firebug and the only script loaded is jquery 1.2.6. then i do var d = $( '#logo' ) d [div#logo.tab-me] d.add( '#daisy2' ) [div#logo.tab-me,

[jQuery] Re: array method on a jQuery object: deleting, adding elements

2008-07-13 Thread wolf
Check out the functions here, particularly under Filtering: http://docs.jquery.com/Traversing thx. i am aware of those methods but can't see how i can add this, delete that element from a jQuery object using those. i gather that underlyingly jQuery is using some sort of Array object to manage

[jQuery] Re: array method on a jQuery object: deleting, adding elements

2008-07-13 Thread Richard D. Worth
Add elements to jQuery object: http://docs.jquery.com/Traversing/add#expr Delete elements from jQuery object: http://docs.jquery.com/Traversing/not#expr You can also use .filter, but that's the inverse of .not. It's a little more powerful though in that you can provide an expression or a

[jQuery] Re: array method on a jQuery object: deleting, adding elements

2008-07-13 Thread Michael Geary
The jQuery object (returned by a $(...) query) is an array-like object. It doesn't use a separate Array to store its data. The jQuery object itself has a .length property, and numeric indices [0] through [.length-1]. And of course it has all the other jQuery methods. But it is not an Array and

[jQuery] Re: array method on a jQuery object: deleting, adding elements

2008-07-12 Thread Erik Beeson
Check out the functions here, particularly under Filtering: http://docs.jquery.com/Traversing --Erik On 7/12/08, wolf [EMAIL PROTECTED] wrote: hi all, since a jQuery collection (say, `var j = $( 'div' )`) looks and behaves a bit like a standard javascript array (you can iterate over