I have a page with two forms. If the user is tabbing through fields on either form, I would like for the focus to stay on the current form and not jump to the next form.
Specifically, one form is on the page body and the other is in a modal. The problem I'm addressing is that when the user gets to the end of the modal form and continues to press the tab key, focus moves to the form behind the modal mask.
I can think of javascript/jquery solutions to address this, but I'm wondering if I'm missing any native HTML avenues.
Try using something like this: