[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-17 Thread Matt
On Sep 16, 5:29 pm, Diodeus [EMAIL PROTECTED] wrote: One way would be to grab the nodes, use a loop, and skip over the element that has the special class. Something like this: div id='container' divX/div divX/div div class='special'don't hide me/div

[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-17 Thread Diodeus
As usual, I should have added but Kangax probably does this in one line of code. :) On Sep 17, 5:32 am, Matt [EMAIL PROTECTED] wrote: On Sep 16, 5:29 pm, Diodeus [EMAIL PROTECTED] wrote: One way would be to grab the nodes, use a loop, and skip over the element that has the special class.

[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-17 Thread Richard Quadling
2008/9/17 Diodeus [EMAIL PROTECTED] As usual, I should have added but Kangax probably does this in one line of code. :) On Sep 17, 5:32 am, Matt [EMAIL PROTECTED] wrote: On Sep 16, 5:29 pm, Diodeus [EMAIL PROTECTED] wrote: One way would be to grab the nodes, use a loop, and skip

[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-16 Thread kangax
On Sep 16, 9:23 am, Matt [EMAIL PROTECTED] wrote: Hi there, Say I want to hide a collection of divs, all nested inside a #container div - EXCEPT for #special div. How can I write a function that will accept #special's name as its parameter, rather than writing code to manually hide each of