<script type="text/javascript">
$(document).ready(function() {
$(".slider_link").each(function(i, elem){
elem.click(function(){
$("div#"+elem.attr("tag")).slideUp(300);
});
});
});
</script>
but after the first one (checked with alert) it breaks saying index.html has no method click... whats up with that?
html:
<li><a href="#" tag="home" class="slider_link">Home</a></li>
<li><a href="#" tag="calendar" class="slider_link">Calendar</a></li>
<li><a href="#" tag="officers" class="slider_link">Officers</a></li>
<li><a href="#" tag="media" class="slider_link">Media</a></li>