How To Toggle Button In Button-group On Page Load In Bootstrap3 With Jquery January 15, 2024 Post a Comment I've a button group like below ); }); CopyOr much better, if you want to make production selected by default you should add class active in HTML in the first place:<divclass="btn-group"data-toggle="buttons"><labelclass="btn btn-default"><inputtype="radio"name="environment"id="staging"value="staging" />Staging </label><labelclass="btn btn-default active"><inputtype="radio"name="environment"id="production"value="production" />Production </label></div>Copy Share You may like these postsDifference Between This And $(this) And Callback Function On Event Using JQueryTemporarily Disable Button Using JQueryJs Hard To Position Divs Around A CircleOverride Html5 Validation Post a Comment for "How To Toggle Button In Button-group On Page Load In Bootstrap3 With Jquery"
Post a Comment for "How To Toggle Button In Button-group On Page Load In Bootstrap3 With Jquery"