Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
m (Alert Test) |
m |
||
Line 5: | Line 5: | ||
$(this).siblings().removeClass('selected'); | $(this).siblings().removeClass('selected'); | ||
var wagonSelection $(this).attr('class'); | var wagonSelection $(this).attr('class'); | ||
− | alert(wagonSelection ); | + | alert(wagonSelection); |
}); | }); |
Revision as of 17:49, 2 August 2021
/* Any JavaScript here will be loaded for all users on every page load. */ $('#wagon-configurator-list li').click(function(){ $(this).addClass('selected'); $(this).siblings().removeClass('selected'); var wagonSelection $(this).attr('class'); alert(wagonSelection); });