Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function disableGoogleMapsTab(mapId) {
- $(mapId).find('a, button, div[tabindex], iframe').each(function(index, item) {
- item.setAttribute('tabindex', -1)
- })
- }
- function enableGoogleMapsTab(mapId) {
- $(mapId).find('a, button, iframe').each(function(index, item) {
- item.removeAttribute('tabindex')
- })
- $(mapId).find('div [tabindex]').each(function(index, item) {
- item.setAttribute('tabindex', '0')
- })
- }
Add Comment
Please, Sign In to add comment