how to set radio option checked onload with jQuery

后端 未结 16 2113
陌清茗
陌清茗 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

    De esta forma Jquery obtiene solo el elemento checked

    $('input[name="radioInline"]:checked').val()
    

提交回复
热议问题