Skip to content

allow for multiple checkboxes with the same name but different values#17

Open
levijackson wants to merge 2 commits intoshaneriley:masterfrom
levijackson:multiple-checkboxes
Open

allow for multiple checkboxes with the same name but different values#17
levijackson wants to merge 2 commits intoshaneriley:masterfrom
levijackson:multiple-checkboxes

Conversation

@levijackson
Copy link

Using checkboxes like:
<input type="group[]" value="1" /> <input type="group[] value="2" />
would select the first option every time. Checking on the value as well ensures it selects the correct options.

@steve-didomenico
Copy link

This code works for multiple checkboxes with the same name. Please merge with master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants