how to get multiple checkbox value using jquery

前端 未结 12 772
终归单人心
终归单人心 2020-11-29 20:11

How can I get the value of checkboxes which are selected using jquery? My html code is as follows:



        
12条回答
  •  醉酒成梦
    2020-11-29 20:25

    You can get them like this

    $('#save_value').click(function() {
        $('.ads_Checkbox:checked').each(function() {
            alert($(this).val());
        });
    });
    

    jsfiddle

提交回复
热议问题