I'm not certain why this won't work, maybe someone can help. I got this code:
<dd class="accordion-navigation">
<a href="#panel3" class="switch"><i class="plus"></i> Title</a>
<div id="panel3" class="content">
...
</div>
</dd>
When I click on the <a> I'd like the class of the i-element switch from 'plus' to 'minus'. This is the code I have so far:
$('dd.accordion-navigation').on('click', 'a.switch' function(){
$(this).find(i).removeClass('plus').addClass('minus');
});
Unfurtunatly it does not work. I would be really happy, if I could get a hint.
Thanks in advance Florian
findfunction a string... it's thinkingiis a variable.find(i)vsfind('i')..toggleClass('plus minus');here as well.