I have a repeater containing the following HTML snippet:
<div id='parent'>
<div id='child1'/>
<div id='child2'>
<script type="text/javascript" src="script.js"></script>
</div>
</div>
I would like to select the div tagged "parent" using a function inside script.js and set the inner HTML of the div with id "child1".
My final html should look like this:
<div id='parent'>
<div id='child1'>This inner text was set by jQuery</div>
<div id='child2'>
<script type="text/javascript" src="script.js"></script>
</div>
</div>
How do I do it using jQuery?