Difference between revisions of "MediaWiki:Common.js"

From PKC
Jump to navigation Jump to search
Line 2: Line 2:
$(function () {
$(function () {
var myElement = document.getElementById('mw-mywiki-example');
var myElement = document.getElementById('mw-mywiki-example');
myElement.innerHTML = 'asdjkfasfkldafd asfdas fdas fd
myElement.innerHTML = 'any HTML';
asfdasfdas fda';
}());
}());



Revision as of 08:23, 2 January 2022

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
	var myElement = document.getElementById('mw-mywiki-example');
	myElement.innerHTML = 'any HTML';
}());


$(function () {
	$('#mw-mywiki-example').html('any HTML');
}());