what's the proper way to select a nested div with jquery?
What's the proper way to select a nested div with jquery? My specific example looks like this:
<div id="reportTitle">
<div id="line1">
<div id="line2">
</div>
I need to set the values of line1 and line2 of reportTitle. I want to make sure that I don't set the value of some other line1 and line2 elements on the page. So I'm looking for something like this:
$('#reportTitle > line1').text('test1')
$('#reportTitle > line2').text('test2')
What's the proper way to do this?