Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change values for attributes "id" in <input> tag and for "for" in <label> tag #38

Open
larek opened this issue Jan 7, 2020 · 0 comments

Comments

@larek
Copy link

larek commented Jan 7, 2020

The following HTML code does not allow the use of two or more components on the page, because when you click on the <label> tag, the browser will use only one checkbox. This is due to the fact that the values of the attributes for and id in the tags <label> and <input> may coincide with the values in another component

First component

<input type="checkbox" name="Product 1" id="1" />
<label for="1" title="Product 1" class="super-treeview-text">Product 1</label>

Second component

<input type="checkbox" name="Customer 1" id="1" />
<label for="1" title="Customer 1" class="super-treeview-text">Customer 1</label>
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

No branches or pull requests

1 participant