Jquery Tabs - Change css depending on a specific tab
Posted
by
Jeff Dias
on Stack Overflow
See other posts from Stack Overflow
or by Jeff Dias
Published on 2011-01-01T14:38:15Z
Indexed on
2011/01/01
14:53 UTC
Read the original article
Hit count: 398
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.
© Stack Overflow or respective owner