How to get the values of all checked checkboxes using jQuery

前端 未结 6 1921
傲寒
傲寒 2020-12-15 11:45

I don\'t know how to pass the selected values of the checkboxes. Any help or suggestions will be a big help for me.

As of now here is my code I am stuck in passing th

6条回答
  •  甜味超标
    2020-12-15 12:15

    Get the checkbox list label text

     
         
         
         
         
    
    
    
    var chkbox = document.getElementsByName('mycheckbox[id][]');
        var vals = "";
        for (var i=0, n=chkbox .length;i

    hope it's work for you

提交回复
热议问题