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,
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
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
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
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
5 matches
Mail list logo