Tuesday, May 31, 2011

Select multiple options from listbox

list1.options[0].selected=true;
list1.options[1].selected=true;
list1.options[0].style.cssText = "background-color: white; color: black;"
list1.options[1].style.cssText = "background-color: white; color: black;"

1 comment:

Vivek Tiwari said...

Good one. It heped me...thanks a lot sumit

Post a Comment