Changes

Jump to navigation Jump to search
114 bytes added ,  02:32, 13 August 2021
no edit summary
Line 22: Line 22:     
$('#wagon-configurator-list li').click(function(){
 
$('#wagon-configurator-list li').click(function(){
$(this).addClass('selected');
+
if( $('#wagon-configurator-list li.selected').length > 0){
$(this).siblings().removeClass('selected');
+
$(this).removeClass('selected');
 +
} else {
 +
$(this).addClass('selected');
 +
$(this).siblings().removeClass('selected');
 +
}
 
});
 
});
  

Navigation menu