marklagendijk/jQuery.tabbable — pull request #2 by FesterCluck (2014-11-12 02:11:47+00:00)
Title: Adding options for disabling and enabling tabbable elements

These new functions are useful for disabling tabbing functionality behind modals, or in any other logical group.

One would either use this before creating a modal:

$.disableTabbing();

or if the element exists on the page:

$.disableTabbing({exclude: $(".modal")});

Either way, using this will return the page to normal:

$.enableTabbing();

Future updates:
I'll likely teach tabIndexes[] to keep track of when the index doesn't actually exist as an attribute so it doesn't get added to elements which didn't have it previously.