We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

how to get multiple check boxes in select dropdown list

i want to get multiple checkboxes in select drop down list using volt and phalcon.. how to do it? Please help?



85.5k
edited Oct '16

easiest way would be to use some jquery plugin. You can google it. Because in option tag, you cant put inputs.

As for volt simply check the docs. Its quite easy https://docs.phalcon.io/uk/latest/reference/volt.html

For admin areas I've always used Jquery Chosen plugin, it turns Multiple select into autocomplete control with multiple options. It is really handy when you have let us say 100+ options, as it's easier to search rather than scanning chekboxes.

https://harvesthq.github.io/chosen/