Add Css Class OnClick With Jquery
Someone help me how to add css class with jquery? I've bootstrap tab content with the current class have a class 'active'.
Solution 2:
You could use the click
function.
$(".tab-pane").click(function(){
$(".tab-pane").attr("class","tab-pane active"); //add whatever class you want to. In this case, `active`is added.
});
Post a Comment for "Add Css Class OnClick With Jquery"