I have a list of entries and I am trying to create at the top a list of titles that can be clicked on so the page will scroll to the body. The following is not working because when I use entry_id it is writing out the entire URL/entry_id
<div class="list">
{exp:channel:entries channel="mychan" category="2"}
<div class="mytitle"><a href="{entry_id}">{title}</a></div>
{/exp:channel:entries}
</div>
{exp:channel:entries channel="mychan" category="2"}
<div class="ele">
<div class="mytitle"><a href="#entry_id">{title}</a></div>
<div class="mybody">{mybody}</div>
</div>
{/exp:channel:entries}