using .filter on the html elements collection will have the same effect, providing that oneElement is a proper object:
$$("img").filter(function(el) {
return el !== oneElement;
}).fade(.3);
to demonstrate how versatile mootools is, here's how you can mimic the syntax you already know:
Array.implement({
not: function(skipEl) {
return skipEl ? this.filter(function(el) {
return el !== skipEl;
}) : this;
}
});
var divs = document.getElements("div");
var redDiv = document.getElement("div.red");
divs.not(redDiv).fade(.2);
see this in action here: http://www.jsfiddle.net/dimitar/Z9MNe/
markup:
<div ></div>
<div ></div>
<div ></div>
<div class="red" ></div>
<div ></div>
as pointed out by FunFactor on irc, you can use selectors only to get what you want anyway:
$$('div.something:not(#someId)')
will work, but not if you are just working with an object, such as this
on an onClick
event.