javascript - HTML - Dynamically created input labels, for attribute -


this question has answer here:

is there way link label input without using input's id ?

i'm creating/deleting input / label couples dynamically , not have generate unique ids for attribute. can done using classes or else ?

thanks !

yes place input inside label

<label><input type="text" name="myname" /> first name</label> 

have here - possible associate label checkbox without using "for=id"?

when <input> inside <label>, connection between them implicit.

html4 specification


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -