for u to get the color use the code below
shld put values in the options and use the code belo
var color = document.getEle mentById('selec t').options[document.getEle mentById('selec t').selectedInd ex].value;
alternatively if u had passed the select object u would use
document.obj.op tions[obj.selectedInd ex].value but u as well had to put values in the options...
User Profile
Collapse
Profile Sidebar
Collapse
dennischikwayi
Last Activity: Mar 22 '11, 08:25 AM
Joined: Aug 14 '06
Location:
Leave a comment: