When I click on a element to slideToggle some other elements, I also change the background color of the element that I clicked on to indicate that this is the selected. But how do I remove the background color when I click and slideToggle back the elements?
$(".c756:eq(0)").click(function(){
$(".c756:eq(0)").css('background-color','yellow');
$("#wrapper_datorpaket").slideToggle();
});
You could use the
togglemethod: