This content has been marked as final.
Show 1 reply
-
1. Re: combobox readonly
hollow Sep 29, 2010 10:55 AM (in response to ajanz)function freezeList(whichList){
var array_selected = new Array();
for (i=0; i<whichList.options.length; i++) {
if (whichList.options[i].selected){
array_selected.push(whichList.options[i].value);
}
}
whichList.onchange=function(){
for (i=0; i<whichList.options.length; i++) {
whichList.options[i].selected=false;
for (j=0; j<array_selected.length; j++) {
if (array_selected[j]==whichList.options[i].value){
whichList.options[i].selected=true;
}
}
}}
whichList.className="greyed";
}onmouseover="freezeList(this.form.elements['readList[]'])">