Fri, 18 Jun 2021 15:26:55 +0200
The php/ajax combo for split btaches is the first that will do a better job handling errors. Split batch leftover calculations rounded to 1 decimal. Refuse to split and leave nothing in the main batch
$(document).ready(function() { /** * This will copy the innerHTML of an element to the clipboard * @param element reference OR string */ function copyToClipboard(e) { var tempItem = document.createElement('textarea'); document.body.appendChild(tempItem); tempItem.value = e; tempItem.select(); document.execCommand('Copy'); tempItem.parentElement.removeChild(tempItem); } $('#copytoClipboard').jqxButton({ template: 'success', theme: theme, width: 150 }); $('#copytoClipboard').click(function() { copyToClipboard(forumstr); window.close(); }); });