how to set radio option checked onload with jQuery

后端 未结 16 2098
陌清茗
陌清茗 2020-12-04 04:42

How to set radio option checked onload with jQuery?

Need to check if no default is set and then set a default

16条回答
  •  情歌与酒
    2020-12-04 05:09

    Don't need all that. With simple and old HTML you can achieve what you want. If you let the radio you want checked by default like this:

    When page loads, it'll come checked.

提交回复
热议问题