Jquery Tabs - Change css depending on a specific tab
- by Jeff Dias
So, I am working in this page
http://universidadedoingles.com.br/text-tabs/tabs-text.html
As you guys can see, I have four tabs and an arrow right below, I need to do that the arrow go below the selected tab, if a click on tab 3, that arrow should go below tab 3, simple as that! but I don`t know!
You also can see that when the page loads on tab 1 and you click on tab 2 the effect I want works pretty well, here`s the jquery I am using for that:
$(document).ready(function() {
$("a.tab2").click(function() {
$(".arrow-spacer").addClass("tabs2");
});
});
That`s it, thank you vey much for any kind of help.
p.S - i am using a mac, so theres no IE for testing yet, this looks good in Safari and Chrome.