Answers for "how to get text from button js"

2

get button text javascript

document.querySelector("button .button-class").innerText();
Posted by: Guest on March-19-2021
0

access text inside a button from js

document.getElementById("myButton2").childNodes[0].nodeValue=
   "New Button Text using childNodes";
Posted by: Guest on November-30-2020

Code answers related to "how to get text from button js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language