开发者

javascript validation query

开发者 https://www.devze.com 2022-12-17 02:42 出处:网络
$(\"#submit_js\").click(function() { $.post( \"user_submit.php\", {score: $(\'#ques\'+qn).find(\'input[name=vote]:checked\').val(), uid:$(\"#uid\").val() },
$("#submit_js").click(function() {

    $.post(
        "user_submit.php", 
        {score: $('#ques'+qn).find('input[name=vote]:checked').val(), uid:$("#uid").val() }, 
        function(data){

i didnt post the complete fun开发者_StackOverflow社区ction. but that is out of scope. i need to ask how can i validate that the user has chosen a radio button? can someone help me with the syntax?


$('input:radio:checked').length > 0
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号