davidstutz / bootstrap-multiselect

JQuery multiselect plugin based on Twitter Bootstrap.
https://davidstutz.github.io/bootstrap-multiselect/
Other
3.66k stars 1.99k forks source link

Web browser warnings of "A form element should have an id or name attribute" #1276

Open Jonathanliu92251 opened 7 months ago

Jonathanliu92251 commented 7 months ago

When Multiselect generates html code, form elements may miss something, which cause warnings from web browser. a quick example is, when open official website with debug mode "https://davidstutz.github.io/bootstrap-multiselect/#configuration-options-onChange", you can see browser 100+ warnings (Snapshot as below): "A form element should have an id or name attribute" and "No label associated with a form field"

It's better to fix these warnings, thanks a lot.

form-id-label-warning