Focus trap for multiple modals
I’m working on a trap focus modal functionality and it works well with a single element, but I can’t get it working with multiple elements. It traps focus only on last modal. I know there is something wrong with my loop, I tried to catch activeElement and add a condition if it’s equal to focused element but with no result.
jQuery: trigger event on tab key
I would like to call a function when the tab key is pressed within any field with the name=”notes”. I tried the following but this doesn’t fire (using IE 9). What do I have to change here to make this work at least in IE 8 and IE 9 ? Answer The problem I think is in the type of