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 may use given below toggle function to toggle multiple elements by giving array of element id as input.
For example:
toggleElements(["elem1","elem2"],["elem3"]); OR toggleElements(arr1,arr2);
function showElements(showEls){ for(var i=0; i