Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • console.log(document.querySelectorAll(":checked")) shows the number of checked boxes. What is the issue? That you cannot see the checked property when inspecting the code? Commented Jun 11, 2018 at 12:06
  • To get the value of all checkboxes via PHP form, you should give them all either different names or the same name that ends with [] (e.g. name="checkboxes[]"), so PHP would be able to make an array from their values. Commented Jun 11, 2018 at 12:18