Bootstrap: set initial radio button checked in HTML

后端 未结 3 479
故里飘歌
故里飘歌 2021-01-01 14:22

I\'m using Bootstrap\'s JavaScript buttons to style some radio buttons, and I don\'t seem to be able to set an initial button as checked.

Here is my code:

3条回答
  •  旧时难觅i
    2021-01-01 14:48

    Like Skelly mentioned, the active class is what Bootstrap is toggling, it doesn't look at the checked attribute. You don't have to do it with Javascript however...

    
    

    Will give you what you're looking for.

提交回复
热议问题