E
E
Egor Trubnikov-Panov2014-03-24 11:03:37
Automation
Egor Trubnikov-Panov, 2014-03-24 11:03:37

What names and id should be given to form elements for autocomplete to work correctly?

For example, as in the Safari browser.
You press autocomplete and the form is filled.
But usually only the first and last name are substituted, and the rest of the fields.
For example, phone or mail is left empty because the names of these elements are not named correctly.
So, how to name these elements so that the magic works?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stepan, 2014-03-24
@L3n1n

here habrahabr.ru/post/31279 they write that: "The NAME attribute is deprecated, use ID instead".

Brad is writing there. Read more:
If you process the form with JavaScript, then name may not be required, but for the server part, without it, your form simply will not work.

S
Sergey, 2014-03-24
@Ualde

It's not about the id, it's about the name.
firstname - oddly enough, the name
surname - according to the same logic, the surname,
etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question