Quote:
Originally Posted by felgall
My suggestion was made on the basis of not amending the HTML for the current form. Using an id for accessing the form from JavaScript is certainly the better option.
Where you have an id on any field within the form you don't need one on the form tag itself as any field within the form provides easy access to the entire form.
|
Very true, but if the form is to be submitted to a server-side script then the form elements must have names (in addition to ids if present). Like Old Pedant I see no real need to assign ids to form elements.