Changes

Jump to navigation Jump to search
no edit summary
Line 4: Line 4:  
$(this).addClass('selected');
 
$(this).addClass('selected');
 
$(this).siblings().removeClass('selected');
 
$(this).siblings().removeClass('selected');
alert($(this).attr('class'));
+
var wagonClass = $(this).attr('class');
 +
var wagonSelection = $(classString).text().split(' ')[0];
 +
alert(wagonSelection);
 
});
 
});

Navigation menu