I have a html:
<div id="sliderFrame"><div id="slider"></div></div>
I want to insert html code into slider div, and I know
$('#slider').append('<a class="lazyImage" href="sample.jpg"></a>');
will work.
I am wondering if I can achieve this using innerHTML, but I failed to do it because document.getElementById().getElementById()
can not work.
And I found chaining getElementById , but I don't quite get it, any one has simpler solution or can explain this?