jquery: how to check if all radio buttons in a div are selected

前端 未结 8 1116
一向
一向 2021-02-07 02:13

my html looks like this

8条回答
  •  逝去的感伤
    2021-02-07 03:11

    Looking for something along these lines? http://jsfiddle.net/gXsZp/3/

    Q1
    Q2
    Q3

    $('#btn').click(function(){ if ( $('#div1 input:radio:checked').size() == 3 ) return true; return false; });

提交回复
热议问题