Changes

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

Navigation menu