keep the focus on all emelemnt containing the tabindex attribute?
hi there,
i want to keep the focus on every element which has the tabindex attribute, avoiding to submit the focus to the adress-bar of the browser window aso... that means i'm trying to achive some kind of loop-through-functionality, when i'm pressing the tab key i want to step throup all elements containing the tabindex-attr, the last element should submit its focus to the first tabindex-element...
any hints, ideas?
i'm using the google hotkey-plugin (http://code.google.com/p/svg-edit/source/browse/trunk/editor/js-hotkeys/jquery.hotkeys.min.js?r=1201)
- <script type="text/javascript"> //<![CDATA[ $(document).bind('keydown', 'tab', function (evt) { if ($(evt.target).attr('tabindex').length == 0) $('[tabindex]:first').focus(); return false; }); //]]> </script>
thanx!!!