jQuery toggle only single elements
if i use this toggle function each one of the div elements toggled.
but i only want one element to toggle.
so if i click on the first toggle only the first div element shell open not every div.
wheres my fault?
- $("a.z8toogle").click(function () {
$("div.z8stats").slideToggle("fast");
});
- <a class="z8toogle" href="#">Z8 Statistiken</a><div class="z8stats">hier die scheis stats</div>
- <a class="z8toogle" href="#">Z8 Statistiken</a><div class="z8stats">hier die scheis stats</div>
- <a class="z8toogle" href="#">Z8 Statistiken</a><div class="z8stats">hier die scheis stats</div>
- <a class="z8toogle" href="#">Z8 Statistiken</a><div class="z8stats">hier die scheis stats</div>