Im trying to get ajaxed content to alter their parent. How can I do this with jQuery, I can't seem to get the syntax right.
<div id="menu">
<a href="#" id="show_names">Show Names</a>
</div>
<!-- AJAXED CONTENT -->
<div id="content">
<a href="#" id="person">Janice</a>
<a href="#" id="person">Steve</a>
</div>
<!-- AJAXED CONTENT (END) -->
When 'Show Names' is clicked it shows the names 'Janice' and 'Steve'. What I want to do is be able to click either of the two and have them change their parent's contect. I.e.
$("#content).empty().text('Janice was born on 3rd September');
How is this possible with jQuery? I've tried Livequery but it doesn't seem to be what I wanted.