Add Css Class Onclick With Jquery March 27, 2024 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 JugaCaption Does Not Work After Centering ImageHow To Align Pseudo Element :before :after And Span ElementHow To Check If An Html5 Validation Was Triggered Using Selenium? Share You may like these postsIn Css, When I Have Lists Within Lists, I Can't Override The Parent List StyleLightbox Only Show's First ImageWhy Don't Flex Items Shrink Past Content Size?Html / Css Contol Image Size Dynamically? Post a Comment for "Add Css Class Onclick With Jquery"
Post a Comment for "Add Css Class Onclick With Jquery"