Add Css Class Onclick With Jquery January 30, 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 JugaChrome Css 3 Transition Not SmoothChinese Font On The Web Rendering Differently In Different BrowsersTooltip Appears Over The Element In Intro.js Mobile View Share You may like these postsWhen Did Browsers Start Supporting Multiple Classes Per Tag?How To Call A Script Inside A ScriptHow To Make The Table Content Wil Shown Automaticly In Pop Up FormJquery Mobile Disable Enhancement On Certain Tags? Post a Comment for "Add Css Class Onclick With Jquery"
Post a Comment for "Add Css Class Onclick With Jquery"