Tuggle Button add value all page

how do i get the code below to be selected on all pages and send the selected value to database


<button id=”toggle” onclick=”myFunction()”>on</button>


function myFunction() {
var change = document.getElementById(“toggle”);
if (change.innerHTML == “on”)
change.innerHTML = “off”;
else {
change.innerHTML = “on”;


and if it’s not too much to ask to update this plugin without reloading the page


Read more here:: Tuggle Button add value all page

Leave a Reply

Your email address will not be published. Required fields are marked *