Code Snippets for Datatables.js | Examples and Formatting of tables
How Do You Do Stuff With DataTablesJS Tables 1. Turn off searching on columns 1 and 2 2. Shut off Filter arrows. 3. Set width (turn off autoWidth first) Order…
How Do You Do Stuff With DataTablesJS Tables 1. Turn off searching on columns 1 and 2 2. Shut off Filter arrows. 3. Set width (turn off autoWidth first) Order…
$(document).ready(function(){ replaceButtonText(); }); function replaceButtonText() { var buyButtonText = "Buy Now"; var listOfButtonsOnPage = document.getElementsByClassName("listingBuyButton"); for(x=0;x<listOfButtonsOnPage.length;x++) { listOfButtonsOnPage[x].innerText = buyButtonText; } }
This one will help you... var getUrl = window.location; var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1]; Resources: https://stackoverflow.com/questions/25203124/how-to-get-base-url-with-jquery-or-javascript