Difference between revisions of "MediaWiki:Common.js"

From UMaine SECS Numerical Modeling Laboratory
Jump to: navigation, search
Line 5: Line 5:
 
   var myElement = document.getElementById('dropdown');
 
   var myElement = document.getElementById('dropdown');
 
   myElement.innerHTML =  
 
   myElement.innerHTML =  
'
+
'some text';
some text
 
';
 
  
 
}());
 
}());

Revision as of 20:53, 19 February 2019

/* Any JavaScript here will be loaded for all users on every page load. */

$(function () {

  var myElement = document.getElementById('dropdown');
  myElement.innerHTML = 
'some text';

}());