peterinwa
03-26-2003, 05:45 AM
In creating a drop down menu I presently use this code:
<option selected value=" + Value + ">" + Text;
Value and Text were taken from the last option the user selected and stored in a cookie and so when the user returns the last option they selected has remained selected. But when the user opens up the drop down menu, they're at the top even if the item was half way down.
Can I instead do this by specifying the position of the item in the menu (array)?
What would be the syntax?
And when the user opens the drop down menu, will it be positioned there? Or will it be positioned at the top of the list again even if the item's half way down?
Thanks, Peter
<option selected value=" + Value + ">" + Text;
Value and Text were taken from the last option the user selected and stored in a cookie and so when the user returns the last option they selected has remained selected. But when the user opens up the drop down menu, they're at the top even if the item was half way down.
Can I instead do this by specifying the position of the item in the menu (array)?
What would be the syntax?
And when the user opens the drop down menu, will it be positioned there? Or will it be positioned at the top of the list again even if the item's half way down?
Thanks, Peter