Hello to all! There is a drop-down list, with an arrow to the right, which should change depending on the list opened or collapsed.
When I open it, the arrow behaves as it should, looks down.
But when re-folding the list, the arrow and looks down, does not change. And should look up. I do it like this:
$('.list_title').click( function() { $('.list_content').slideToggle() $('.listBgArr').addClass('uppArrow'); }); That is, when I click on list_title , the list is expanded and the uppArrow class is added to the arrow, which in css changes the background-position the css sprite arrow. Can someone help why this happens?


toggleClassinstead ofaddClass- Oleksandr