artamonovdev artamonovdev - 4 months ago 8
Javascript Question

Tag <label> does not work for <input>

enter image description here

Why does not work the tag ? Where is error?

Answer

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">
Comments