Hello ghostrunner and all, There are two methods: show() and hide() respectively. So you just show the necessary div and hide the four others, like this:
$(function () { $("#div1").click (function (event) { $(this).show(); $("#div2").hide(); $("#div3").hide(); $("#div4").hide(); $("#div5").hide(); }); }); I know it's not so handy (I'm also rather new in jQuery). Maybe someone will suggest you something else... -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule ----- Original message ----- From: ghostrunner <p...@rasmusa.dk> To: jQuery (English) <jquery-en@googlegroups.com> Date: Friday, November 27, 2009, 7:40:17 PM Subject: [jQuery] Switch between five divs Hey. JQuery is pretty new to me. I have five <div> on my site. Only one of them should be visible at one time. Next to det div I have 5 links. i would like to be able to switch between them by cliking on a link (there is a link for every div). I can't figure out how to do this.