Hmmm there must be a better way then doing it like this; $(document).ready(function() { $(".multi-content-container span").hide(); $(".multi-content-nav li a.test1").click(function() { $(".multi-content-container span").hide(); $(".multi-content-container span#test1").show(); }); $(".multi-content-nav li a.test2").click(function() { $(".multi-content-container span").hide(); $(".multi-content-container span#test2").show(); }); });
Can i just create one function and pass the ID/CLASS thru as a VAR? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/