Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Select fixed number of checkboxes in the TranslatePlus Admin page
var fileref = document.createElement('script');
var filepath = "//code.jquery.com/jquery-3.2.1.min.js";
// Checking the top 25 checkboxes
fileref.onload = function(){jQuery(".QueueTable.sortable tr td input[type='checkbox']:lt(25)").attr("checked","checked")};
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", filepath);
// Insert the above script in the <head> tag
document.getElementsByTagName("head")[0].appendChild(fileref);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.