Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
$(this).addClass('selected'); | $(this).addClass('selected'); | ||
$(this).siblings().removeClass('selected'); | $(this).siblings().removeClass('selected'); | ||
− | alert( | + | alert($(this).attr('class')); |
}); | }); |
Revision as of 17:51, 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'); alert($(this).attr('class')); });