I'm trying to take div innerHTML, but I cant give that div ID so I try to take it by classname. Here is that html:
<div class=" nicEdit-main " style="width: 499px; margin: 4px; min-height: 149px; overflow: hidden;" contenteditable="true"><div align="center"><ol><li><sub><font size="5">+++</font></sub></li></ol></div></div>
And here is what I've tried to do:
document.getElementsByClassName(" nicEdit-main ").innerHTML;
Bu it returns unidefined. What can i do to take that innerHTML?