I have to correct that:
$$ returns an array like Elements instance (see http://mootools.net/docs/Element/Element#Elements
)
If you call an Element method on an Elements collection MooTools
iterates over the collection and executes the method on each element,
collection the return values in an array and returns that array. If
each method happened to return an Element, a new Elements collection
will be returned
Therefore $$('#facetrow div.zip').destroy(); should work, destroying
all divs with class 'zip' inside the element with id #facetrow.
-jan
On Oct 10, 2008, at 12:02, Tim E wrote:
$$ returns an array.
$$('#facetrow div.zip')[0].destroy(); would work.
#facetrow is a an object with an ID, so why not use: $
('facetrow').destroy() ?
On 9 okt, 22:19, Jan Kassens <[EMAIL PROTECTED]> wrote:
the problem is likely not in that snippet, some more code or a demo
page would help allot.
On Oct 9, 2008, at 21:38, Rich V wrote:
The following works in Firefox, but not in Safari
$$('#facetrow div.zip').destroy();
In Safari, it empties the content of the div on the first click and
deletes it on the second click..
Any ideas?
--
my blog:http://blog.kassens.net
--
my blog: http://blog.kassens.net