Add Css Class Onclick With Jquery October 07, 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 JugaLoop Through Tags Inside Html String From DatabaseLooking For An Alternative To FlexCss File Not Linking To Html File When Website Uploaded Online Share You may like these postsHow To Get All Values Of Multiple Select Box Through POST?Change Parent Div Height Depending On Child Absolute Div Height Using JavascriptSimultaneous Data Slows Down The ApplicationJquery - More Efficient To Use Multiple Selectors, Or Each Post a Comment for "Add Css Class Onclick With Jquery"
Post a Comment for "Add Css Class Onclick With Jquery"