Firstly, define a new css class , selected_tab , as following: //Style code .selected_tab{ background-color:#ccc; color:#000; }
//Script code //$(".tab") indicate all of your tab elements. $(".tab").click(function(){ $(".selected_tab").removeClass("selected_tab"); // clear current select tab style $(this).addClass("selected_tab"); } ) Hope that helps. Becoder. On Fri, Oct 16, 2009 at 11:57 AM, lukas <animod...@gmail.com> wrote: > > Can anybody direct me to a lightweight jquery script controlling tabs? > I just want the activated tab to appear differently than the rest of > the tabs. Thank you!