Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Feb 8, 2013, 08:54 AM   #1
sk3pt1c
macrumors 6502a
 
Join Date: Nov 2005
Location: a simulacrum
How can I allow the tab key only inside a specific div?

I have a form that is broken down into several tabs/pages to make it easier for the user to fill.

The thing is, there are buttons to go from page to page but if you keep pressing the tab key you will go to the next page but it breaks the form.

I want to be able to allow the tab key only inside each and prevent it from skipping from one to the next.

Setting the tabindex to -1 won't work because i actually want the users to navigate the pages with the tab key properly.

I've also tried adding tabindex="-1" to the div but it doesn't seem to work.

So i'm guessing jQuery?

The form has basic text boxes, dropdowns and radios and it's wrapped in a codaslider content sliding plugin.
__________________
Vi Veri Veniversum Vivus Vici
Macbook Pro 15" Retina
sk3pt1c is offline   0 Reply With Quote

 
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Help with Xcode [how can i do so a button sends me to a specific tab] Intelligent Mac Programming 26 May 14, 2014 10:40 AM
Swtich between 2 specific tabs in Sarari like Ctrl-Tab in a pc JohnDohe OS X Mavericks (10.9) 2 Dec 24, 2013 11:29 PM
tablets: Samsung's next Galaxy Tab will have Intel inside, says Reuters AutoUnion39 Alternatives to iOS and iOS Devices 0 May 31, 2013 11:16 AM
encrypt NSString with MD5 and specific key macdan56 iPhone/iPad Programming 2 Nov 5, 2012 01:10 AM
How to read specific key value from plist file saqibjaan Mac Programming 3 Sep 2, 2012 09:27 PM

Forum Jump

All times are GMT -5. The time now is 02:14 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC