Changes

Jump to navigation Jump to search
no edit summary
Line 2: Line 2:     
$(document).ready(function(){
 
$(document).ready(function(){
 +
var wagonConfiguratorList;
 
var wagonSelection;
 
var wagonSelection;
 
 
Line 13: Line 14:     
$('#wagon-configurator li.wagon-slot').click(function(){
 
$('#wagon-configurator li.wagon-slot').click(function(){
wagonSelection = $('#wagon-configurator-list li.selected').classList[0];
+
var wagonConfiguratorList = $('#wagon-configurator-list li.selected');
 +
wagonSelection = wagonConfiguratorList.classList[0];
 
alert("You selected " + wagonSelection);
 
alert("You selected " + wagonSelection);
 
});
 
});
 
});
 
});

Navigation menu