I have in my
this.nameHtml
a DOM object with value:
<span class='test-name'>333</span>
I want to access the innerHTML i.e. 333
basically I am creating a checkbox element and want to assign the 333 value from DOM object in name attribute as follow:
checkBox = document.createElement("input");
checkBox.type = "checkbox";
checkBox.name = this.nameHtml; // Here i want to store 333
checkBox.className = "TriageCheckBox";
Please suggest a way.