I would use a class instead for these links instead and set the ID in a data attribute. Depending on your needs you don't even need the ID as you can show the next element if it is already part of the DOM.
A simple example (ID not used...):
<a href="#" class="show_more" data-id="xx">Toggle details</a>
<div class="initially_hidden">
...
</div>
....
<a href="#" class="show_more" data-id="x">Toggle details</a>
<div class="initially_hidden">
...
</div>
....
and the javascript:
$('.show_more').on('click', function(e) {
e.preventDefault();
$(this).next().slideToggle();
// if you need the ID, you can get it via $(this).data('id')
});