Hey,
The following works for me, using an array to store the state after each selection (
AFAIK there is no single property you can use)...
Code:
var gSelected = [];
function ShowSelected(pBox){
var temp = "";
for(var i = 0; i < pBox.options.length; i++){
if(pBox.options[i].selected != gSelected[i]){
gSelected[i] = pBox.options[i].selected;
if(gSelected[i]){
alert("you selected " + pBox.options[i].text);
}
}
}
}
Cheers,
Chris