Inspector warnings for duplicate id on inputs

Hello, I’m wondering if the google chrome’s inspector warning for having different inputs with the same ID could give me some trouble…

I have duplicated IDs because I use several PHP include files for some forms, and sometimes the ID gets duplicated or maybe the include file is being called twice on the same webpage.

Thanks!

ID’s for form inputs are used by the label element. This is so that screen readers, when the label is clicked, can trigger/invoke the form controls.

So yes, it is important to have unique ID’s, !important!

1 Like

Thanks! I’m going to solve it on a few days… I guess I have to identify each element. Any tool for it?

1 Like