Hopsel: jQuery mit eq() ausschließen

Beitrag lesen

Hi johny7!

Gibt es denn eine elegantere Lösung?

Ob sie eleganter ist... naja.

$('.elements:lt(5),.elements:gt(5)').addClass('haha');

MfG H☼psel

--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)