Bard schrieb am 22.August.2009, 18:22:25 in der Kategorie web.coding
$(\"#tab_area\")
.find(\"a\")
.click(
function() {
$(\"#tab_area\").find(\"a\").removeClass(\"active\");
$(this).addClass(\"active\");
}
)
.end();
Allen Elementen die Klasse nehmen und dem Aktuellen hinzufügen.
Grüße
Bard