Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Selectable) |
m |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | $( function() { | + | $('#wagon-list li').click(function(){ |
− | + | $(this).addClass('selected'); | |
− | } ); | + | $(this).siblings().removeClass('selected'); |
+ | }); |
Revision as of 03:48, 2 August 2021
/* Any JavaScript here will be loaded for all users on every page load. */ $('#wagon-list li').click(function(){ $(this).addClass('selected'); $(this).siblings().removeClass('selected'); });