Add Css Class Onclick With Jquery January 18, 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 JugaHow Do I Use Logo Plugin In VideojsHow To Convert An Html String To A Pdf Inputstream?Safari 6 (ios 6) Flex Layout Doesn't Wrap Elements Share You may like these postsHow To Update Multiple Dropdown Selects When User Changes One SelectionJQuery Keep Active Menu Item HighlightedJquery - Difference Between Event.target And This Keyword?Jquery Many Autocompletes On The Same Page Post a Comment for "Add Css Class Onclick With Jquery"
Post a Comment for "Add Css Class Onclick With Jquery"