PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Auto tab with group elements

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
bgraham1125



Joined: 24 Aug 2009
Posts: 4

PostPosted: Sat Sep 19, 2009 3:48 pm    Post subject: Auto tab with group elements Reply with quote

I am using a group of three elements for a phone number with area code, exchange, and number. My client has asked for an auto tab feature to place the focus on the next field when you reach the length of the field you are completing. This is fairly simple in javascript but the script needs to be passed the DOM element id and, in some scripts, the next id. I am having difficulty identifying how to pas this id to the script for the group element being completed.

I know the alternative is to use one text field and format the number after it is entered. I am curious how to pass this to the script and also if my search missed another way to do this with QuickForm. Any help would be appreciated.
Back to top
View user's profile Send private message AIM Address
wheeled



Joined: 13 Mar 2010
Posts: 1

PostPosted: Sat Mar 13, 2010 11:55 am    Post subject: Reply with quote

This script does just that for any group of checkboxes and radio buttons.
_________________
link wheel
linkwheel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement