Reputation: 143
I want to change tab background color while click and active that tab..and font color also want change while clicking tab
My fiddle
http://jsfiddle.net/fDk3z/4/
Please any one help!
Thanks for advance....
Upvotes: 1
Views: 1937
Reputation: 432
You can use following javascript code for active tab color change.
<script>
$(function() {
$("li").click(function(e) {
e.preventDefault();
$("li").css("background-color","");
$(this).css("background-color","yellow");
});
});
</script>
Upvotes: 0
Reputation: 7004
set background .selected1
to the color you want.
.tabrow li.selected1 {
background-color: red;
}
.tabrow li.selected1 a {
color: #fff;
}
Here a working demo
Upvotes: 1
Reputation: 960
Add this css
CSS
.hownav .tabrow li.selected1{background:#ccc}
.hownav .tabrow li.selected1 a{color:#fff}
Upvotes: 2