How to get the values of all checked checkboxes using jQuery

前端 未结 6 1912
傲寒
傲寒 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:36

    Try This.

    HTML CODE

    
    
    
    
    
    
    
    

    loadmore.php CODE

    OUTPUT IN loadmore.php

    Array
    (
        [0] => 1
        [1] => 2
        [2] => 5
    )

    That's IT.

    Cheers.

提交回复
热议问题