Click to See Complete Forum and Search --> : HTML SELECT Tag Problem
NSWC-JJE
05-07-2003, 01:07 PM
Normally if you type in the select field the first option starting with that character becomes your starting point. I need to extend this capability to allow users to continue typing in characters and have the options track the sequential characters. I need to emulate an editable drop-down datawindow as used in Sybase's PowerBuilder.
Use onKeyPress="doFunction()"
function doFunction(){
if(event.keyPress){
if(document.myForm.mySelect.options[documenty.myForm.mySelect.options].text.substring(0, 1)==event.keyPress) document.myForm.mySelect.options[document.myForm.mySelect.all["your_select"]].selected;
} }
}
That should start you up a little. ;)
NSWC-JJE
05-07-2003, 04:23 PM
Thanks Jona,
My first attempt didn't work, but I'll play with it.
Again, thanks