Add Css Class Onclick With Jquery January 25, 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 JugaJquery: How To Hide Tables Depending On Text InputAdd New Row To Table Using Jquery On Enter Key ButtonUsing .load() To Populate Div With Images For Easy Slider1.7 Share You may like these postsMigrate To Bootstrap 4 From Bootstrap 3?How To Make Video With Full HeightHow Ro Reduce Bar Height - Chart.jsResponsive Design Toggle Using Bootstrap Post a Comment for "Add Css Class Onclick With Jquery"
Post a Comment for "Add Css Class Onclick With Jquery"