MediaWiki:ShowHide.js

/* Show/hide button */ var showHide = document.getElementsByClassName('showhide'); $('.showhide').click(function {   if (showHide.innerHTML === 'show') {        $(this).html('hide');    } else {        $(this).html('show');    } });