if tab index isnt defined, try to get it from target element