Check if a radio button is checked jquery [duplicate]
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This question already has an answer here: Check if checkbox is checked with jQuery 19 answers I have this HTML: <input type = "radio" name = "test" id = "test" value = "1" ><br> <input type = "radio" name = "test" id = "test" value = "2" ><br> <input type = "radio" name = "test" id = "test" value = "3" ><br> <input type = "button" onclick = " CreateJobDo " > When the page loads, none of them will be checked. I want to use jQuery to check if one of the radio buttons is checked when the button is pressed. I have this: function