Hi there..
I'm new to this JavaScript game, and I need your help.
What I have is a combo box (drop down list with input)..
The list contains the following text :
<blank space>
A - Apple
B - Banana
C - Cherry
the values for each list item are ' ', 'A', 'B' and 'C' respectivly (clever eh ? hehe).
Now the tricky part.. the user can either select an item from the list, eg clicks the DDL and selects 'B - Banana' which is fine.. BUT, what i want to do is, the user can also TYPE in a value - ie, 'B' and when the focus is lost, some kind of fucntion will search thru the list and replace 'B' with the list item 'B - Banana'.
Is this possible ?
Please help... i just know i have to use the onBlur() event right ? but what function would i need to search through the list. The list looks like this in debug mode :
" = ¬A - Apple=A¬B - Banana=B¬C - Cherry=C"
Thank you.
I'm new to this JavaScript game, and I need your help.
What I have is a combo box (drop down list with input)..
The list contains the following text :
<blank space>
A - Apple
B - Banana
C - Cherry
the values for each list item are ' ', 'A', 'B' and 'C' respectivly (clever eh ? hehe).
Now the tricky part.. the user can either select an item from the list, eg clicks the DDL and selects 'B - Banana' which is fine.. BUT, what i want to do is, the user can also TYPE in a value - ie, 'B' and when the focus is lost, some kind of fucntion will search thru the list and replace 'B' with the list item 'B - Banana'.
Is this possible ?
Please help... i just know i have to use the onBlur() event right ? but what function would i need to search through the list. The list looks like this in debug mode :
" = ¬A - Apple=A¬B - Banana=B¬C - Cherry=C"
Thank you.