Hiding all DIVs >= x
Hiding all DIVs >= x
Hi,
I have a page were you can place divs with the class "teaser".
To get the amount of teasers I use
$("div.teaser").length.
Now I want to add a function to hide all divs which have a higher number
than 10. So, from 0-10.show divs, from 11-x hide them.
Any idea who to write something like this?
thx
T.C.