Displaying 1 result from an estimated 1 matches for "aselectedgroup".
Did you mean:
aselectedgroups
2006 Oct 18
1
optgroup and Javascript Issues
...s?
The following seems to work without the optgroup tags in a multiselect
list box. I have tired going threw the children of the optgroup but i
was unable to pull a valid .value or .selected.
Any Ideas? Thanks.
var objGroups = document.getElementById(''groups'').childNodes;
var aSelectedGroups = new Array();
for (var i = 0; i < objGroups.length; i++) {
if (objGroups[i].selected == true) {
aSelectedGroups.push(objGroups[i].value);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rai...