Difference between revisions of "MediaWiki:Common.js"

From Emps-World Wiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { $(".item-bonus-table").each(function() { var table = $(...")
 
Line 5: Line 5:
 
     $(".item-bonus-table").each(function() {
 
     $(".item-bonus-table").each(function() {
 
         var table = $(this);
 
         var table = $(this);
         table.find("th")[0].text("table header test");
+
         table.find("th").text("table header test");
 
     });
 
     });
  
 
});
 
});

Revision as of 17:51, 19 August 2018

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


$(document).ready(function() {
    $(".item-bonus-table").each(function() {
        var table = $(this);
        table.find("th").text("table header test");
    });

});