I am using jQuery for a panel to show and hide. There is a small arrow image on it which also changes on hide and show. My code is
<div class="trigger-m"><span id="toppanelarrow"> </span></div>
Now a class is added to_up when the panel opens and to_down when the panel closed. I have respective up and down arrow image for this.
Can someone help me adding a jQuery on click event of 'toppanelarrow' so a new class gets added to the span.
I have tried $().addClass().removeClass() but this didn't work.
Update: Please find the fiddle implementation http://jsfiddle.net/B5QUj/4/
Thanks