Hello, I am trying to get a value of a div. I have an html page with a div's class called "findme".
I have tried innerHTML but it keeps saying undefined.
function innertest() {
var a = document.getElementsByClassName("findme").innerHTML;
alert(a);
}
<div class="findme"><b>This is a test</b></div>
Is there a way that I can have a popup that displays the content of that div, and keep the html tags? Thanks for any help!