Perl And CGI - Drop Down List - Automatic Selection As You Type
Posted on 2004-10-05
I'm designing a Web-Page - form using Perl and the CGI module.
The page contains a drop-down list.
When the user is viewing the page, and the user's focus is on the drop-down list, and they type one character, the drop-down list jumps to the first occurance of that letter.
i.e. if the drop-down list contains these items, [ace, boy, ache, care] - when the user hits the 'a' key, the list jumps to 'ace'. (Right?)
But unlike many forms, if they then hit the 'c' key after hitting the 'a' (the user is intending to jump to 'ace') it jumps to 'care.'
I trust I've explained this well enough - (sometimes it's tough)
My question is: Is there a way, using Perl / CGI, to get that 'type-ahead' result for the drop-down lists?