I have the following code
$(document).ready(function() {
$('a#slick-toggle').click(function() {
$('#slickbox0').toggle(400);
return false;
});
});
<a id="slick-toggle" href="#">Show/Hide</a>
<div id="slickbox" style="display: none;">
hidden content here
</div>
The problem is, if there is more than 1 instance of this on the html part of this on the page, it wont work. Im not very good at JS. The div id I gotta make unique.... but how do I make each link toggle the corresponding box?