How To Toggle Button In Button-group On Page Load In Bootstrap3 With Jquery October 29, 2022 Post a Comment I've a button group like below ); }); Copy Or much better, if you want to make production selected by default you should add class active in HTML in the first place: <div class="btn-group" data-toggle="buttons"> <label class="btn btn-default"> <input type="radio" name="environment" id="staging" value="staging" />Staging </label> <label class="btn btn-default active"> <input type="radio" name="environment" id="production" value="production" />Production </label> </div> Copy Share You may like these postsZoomable Treemap With Tooltips At The BottomShow Tooltips Of Piechart When Hover Outside Of The Chart On A ButtonJquery Remove Label TextScroll Full Image Inside Div 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"