I've searched and I found this code so I guess this is the start I should use but I don't really get what attribute is wrong.
<script type="text/javascript">
$("a").click(function (){
$(".EventShowID").hide();
$("#" + $(this).attr("class")).show().siblings('EventShowID').hide();
});
</script>
Link HTML:
<a href="#EventID1" class="EventID1">EVENT!</a>
<a href="#EventID3" class="EventID3">EVENT!</a>
<a href="#EventID4" class="EventID4">EVENT!</a>
Divs:
<div id="EventShow">
<div id="EventID1" class="EventShowID">Test Event #1<br>Testing adding an event for fun.</div>
<div id="EventID3" class="EventShowID">Test Event #2<br>Testing adding another event for fun.</div>
<div id="EventID4" class="EventShowID">Test Event #3<br>Testing adding anotheranother event for fun.</div>
</div>
What is wrong. :(