Focus the next input with down arrow key (as with the tab key)

后端 未结 3 725
闹比i
闹比i 2021-01-01 22:45

I have a huge entry form and fields for the users to input.

In the form user use tab key to move to next feild,there are some hidden fields and readonly textboxe

3条回答
  •  轮回少年
    2021-01-01 23:02

    If I understand correctly, some fields are read-only, so the tab key still activates them, even though they are read-only, and this is annoying, as you have to press the tab key perhaps several times to get to the next editable field. If that is correct, then an alternate solution would be to use the tabindex attribute on your input fields, indexing each one so that the read-only and otherwise non-editable fields aren't selected. You can find more info on the tabindex attribute here.

提交回复
热议问题