I have a <div> that contains two tags that reference to another <div>.

<a onclick="Printelement('tester');" href"#">Print</a>

<div class="test">
<a id="play" class="again activeLink" href="javascript:;"> First </a>
<a id="play1" class="again" href="javascript:;"> First </a>
</div>

<div id="tester">
</div>

What I need to happen is when you click on the print button, in this case its where the PrintElement is, it should print out whatever link is active, in this case it would be id="play". The problem I am having is when I click print, it prints everything on the page instead of whatever is actually showing or active.