This is just a snippet but I will have many different links on a page. Each link will have a different hidden element associated with it. I\'m trying to avoid writing 100 diff
You would ideally need a way to link the links to the right div. You can do this using the data attributes like this.
HTML:
one
two
stats one
stats two
JS:
$('.county').click(function() {
$('#' + $(this).data('divId')).slideToggle();
});
Example - http://jsfiddle.net/infernalbadger/6wDf9/
This should be quite easy to do if you are dynamically generating these links.