Difference between revisions of "MediaWiki:Common.js"

From CJ-JT Wiki
Jump to navigation Jump to search
(Undo revision 29419 by CjjtAdmin (talk))
Tag: Undo
Line 2: Line 2:
  
 
$(document).ready( function () {
 
$(document).ready( function () {
     /*var opt = document.createElement('option');
+
     var opt = new Option("all", "1500");
     opt.value = 1500;
+
     $(opt).html("all");
    opt.innerHTML = 'all';
+
     $('select[name="DataTables_Table_0_length"]').append(opt);
 
 
     document.getElementsByName('DataTables_Table_0_length')[0].appendChild(opt);*/
 
    alert('Hello');
 
 
} );
 
} );

Revision as of 15:19, 24 April 2023

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

$(document).ready( function () {
    var opt = new Option("all", "1500");
    $(opt).html("all");
    $('select[name="DataTables_Table_0_length"]').append(opt);
} );