artamonovdev artamonovdev - 1 year ago 44
Javascript Question

Tag <label> does not work for <input>

enter image description here

Why does not work the tag ? Where is error?

Answer Source

It would be nice to see a code sample but I am assuming that there is some structure issues within your HTML. Your label and input tags should follow something like this:

<label for="username">Click me</label>
<input type="text" id="username">