Changes

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

Navigation menu