Please I want to get the HTML contents of many div with the same id this is my code:
<div id="my_div">This is content I</div>
<div id="my_div">This is content J</div>
<div id="my_div">This is content P</div>
<div id="my_div">This is content Z</div>
And this is my jQuery code:
document.getElementById('my_div').innerHTML;
But it only gives me the contents of one div. eg This is content I
. This is what I really want This is content IThis is content JThis is content PThis is content Z
. Please how do I run my code?