How can get length on checked checkbox array javascript

后端 未结 11 622
旧巷少年郎
旧巷少年郎 2020-12-29 08:16
11条回答
  •  甜味超标
    2020-12-29 09:05

    you also do by this

    you have to define class for checkBox and then follow below

    var chkLength = $('input.className:checked').length; alert(chkLength);

    this will print your total no of checkboxes from list

提交回复
热议问题