Skip to content

Instantly share code, notes, and snippets.

@vital-tech-results
Last active May 18, 2023 18:57
Show Gist options
  • Save vital-tech-results/efbd5ae42cb7521552b24ca832170aa7 to your computer and use it in GitHub Desktop.
Save vital-tech-results/efbd5ae42cb7521552b24ca832170aa7 to your computer and use it in GitHub Desktop.
example of how to change the text of the "Next" button
<script type="text/javascript" defer>
window.addEventListener('load', function(event) {
let myPrevious = document.querySelectorAll(".bg-gradient-primary")[0].innerText = "Previous changed"
let myNext = document.querySelectorAll(".bg-gradient-primary")[1].innerText = "Next changed"
return;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment