Check if checkbox is checked with jQuery

后端 未结 23 3118
忘了有多久
忘了有多久 2020-11-21 23:12

How can I check if a checkbox in a checkbox array is checked using the id of the checkbox array?

I am using the following code, but it always returns the count of ch

23条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-21 23:55

    Using this code you can check at least one checkbox is selected or not in different checkbox groups or from multiple checkboxes. Using this you can not require to remove IDs or dynamic IDs. This code work with the same IDs.

    Reference Link

    
         ck1
    ck2
    ck3
    ck4

提交回复
热议问题