Tab Order

View: New views
1 Messages — Rating Filter:   Alert me  

Tab Order

by Adam Parker-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello -

I've created a form that collects data for an award nominee and award data.  The nominee may be self-nominated.  On the other hand, a nominator can also select a nominee.

The form loads with the nominee fieldset and the award fieldset visible by default.  There is a checkbox for the visitor to check if they are a nominator selecting someone.  When the checkbox is clicked, jQuery show/hide displays the fieldset for the nominator data.  By displaying the data, the tab index is disrupted.  The form is similar to this:

<cfif isDefined("form.checkbox")>
     <nominator fieldset>
<cfelse>
     <nominee fieldset>
     <award fieldset>
</cfif>

Would simply leaving out the tabindex element correct this issue by the browser automatically tabbing to the next field?  Is that bad coding?





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4866
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15