accordion - Remove class from all <a>-tags within a certain div using jQuery -
i'm using jquery , have managed paste simple accordion can have 1 section of accordion open @ same time. each section of accordion has subitems has "+"-sign indicate this. when section clicked , content expanded, "+"-icon switches "-". this works fine , dandy until need have 2 (or more) accordions on same page . way works now, script switches expanded divs "-"-icons "-" "+". want +/- icons within same div latest clicked link switch, way now, icons of expanded sections changed when link clicked. here script used: $(document).ready(function() { $(".accordion dd").hide(); $(".accordion dt a").click(function(){ $(this).parent().next().siblings("dd:visible").slideup("slow"); $(this).parent().next().slidetoggle("slow"); if ($(this).is("expanded")) { $(this).toggleclass("expanded"); } else { ...