Answers for "change text on press of button css"

1

how to change the text in a button on onclick

var btn = document.getElementById("mybtn");
btn.value = 'my value'; // will just add a hidden value
btn.innerHTML = 'my text';
Posted by: Guest on October-21-2020
0

change button text css

#search {
    width: 20em;  height: 2em;
}
Posted by: Guest on May-15-2020

Browse Popular Code Answers by Language