Add Css Class Onclick With Jquery December 24, 2023 Post a Comment Someone help me how to add css class with jquery? I've bootstrap tab content with the current class have a class 'active'. CopySolution 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. }); Copy Baca JugaBootstrap Css Location And Github PagesContainer-fluid In Bootstrap 3.4 Not Stretching Horizontally 100%Unwanted Scaling On Mobile Devices Share You may like these postsTwitter Bootstrap Resize The Text Size On Phone ScreenBootstrap Left Align Text Inside Centered DivWhat Replaces Nav Lists In Bootstrap 3?How To Center A Form Using Bootstrap? Post a Comment for "Add Css Class Onclick With Jquery"
Post a Comment for "Add Css Class Onclick With Jquery"