I’m reworking a site which uses inputs like this multiple times throughout a page:
<input type="text" name="delDate" value="06.03.2012" />
There’s always an adjacent hidden input, which gives the date enterted above a specific id, when the form is submitted, but I’m wondering if doing it like this (and omitting an input#id is a valid way doing things, since the W3C validator does not complain about it.
Thanks for some input!
Yes, that is valid. The
idattribute is not required.