> onClick: function(clicked) { > var $tabs = $(clicked).parents('ul:eq(0)').find('a'); > if ($tabs.index(clicked) == 1) { > alert("Clicked 2nd tab!"); > } > }
Thanks Klaus, it works perfectly! :) -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay