Greetings all!
I have an HTML select list that allows for multiple options to be selected at once. When looking at a select list and you have more than one option selected, you'll notice a very slight difference between the options you have previously selected and the most recent option you've selected. You can tell by looking at the border of the option, which should have a grey dotted box around it. I know how to determin all the options the user selected, but I want to determin which option has that distinct grey box around it (eg the last option they've selected).
Here is how I display all of the selected options.
Now, how can I display only the last option they selected (the one that has that grey box around it) ???
He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
I have an HTML select list that allows for multiple options to be selected at once. When looking at a select list and you have more than one option selected, you'll notice a very slight difference between the options you have previously selected and the most recent option you've selected. You can tell by looking at the border of the option, which should have a grey dotted box around it. I know how to determin all the options the user selected, but I want to determin which option has that distinct grey box around it (eg the last option they've selected).
Here is how I display all of the selected options.
Code:
For i = 0 To Document.getElementById("lst0").Length - 1
If Document.getElementById("lst0").Options(i).SELECTED = True Then
msgbox Document.getElementById("lst0").Options(i).Value
End If
Next
Now, how can I display only the last option they selected (the one that has that grey box around it) ???
He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon