windowsxp — 2012-06-29T23:52:20-04:00 — #1
Here is a tutorial text
<input type="text" name="someInput" placeholder="Douglas Quaid" required autofocus>
this is good. However can I use autofocus in multiple fields at the same time ?
ralphm — 2012-06-30T00:34:55-04:00 — #2
That would make no sense at all. Only one item can have focus at a time. So either choose which item you want focus to fall on when the page loads, or don't use the feature and let the user decide what to focus on.
windowsxp — 2012-06-30T00:45:31-04:00 — #3
Thanks. this helped.
ralphm — 2012-06-30T00:58:28-04:00 — #4
Out of interest, I was wondering what browsers would do if you had autofocus on more than one input. Firefox chose the first one and ignored the second. Chrome ignored the first one and put focus on the second (more what I expected).
zcorpan — 2012-07-03T06:17:47-04:00 — #5
ralphm — 2012-07-03T08:54:24-04:00 — #6
Ha ha, if you hadn't told me that's what step 7 meant, I'd never have guessed. :lol: