I have pages where I've got <input name="blah" id="blah" ... where the name and id are the same.

Is it correct to have both name and id for an input element? Since I'm doing getElementById, would the id= be sufficient for all occurrences?