Add Css Class Onclick With Jquery October 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 JugaJquery Closest() Not Working For Me (or I'm Not Working For It)How Would I Detect Touch Screens In Jquery And Hide A DivPost Form Keeps Making Get Request Share You may like these postsReactive Tooltipbs In Shiny Using ShinybsCss Conditional On IeJquery Field Validation Onblur (mvc)How To Change Color Of Bootstrap Disabled Button? Post a Comment for "Add Css Class Onclick With Jquery"
Post a Comment for "Add Css Class Onclick With Jquery"