Hello,
How can I handle the de-population of selection boxes?
The put() function works I think I was given that by somebody here. what I'm wanting to do is to remove from the DevicesList.SelectedDevices list if it is clicked on and can not figure out how to remove from that list.
Any Ideas?
Thanks, Danzig
How can I handle the de-population of selection boxes?
Code:
<script type="text/javascript">
function put() {
var len = DevicesList.SelectedDevices.options.length;
txt=DevicesList.AvailableDevices.options[DevicesList.AvailableDevices.selectedIndex].text;
valu=DevicesList.AvailableDevices.options[DevicesList.AvailableDevices.selectedIndex].value;
if (valu != '') {
DevicesList.SelectedDevices.options[len] = new Option(txt, valu);
}
}
function remove() {
var len2 = DevicesList.SelectedDevices.options.length;
DevicesList.SelectedDevices.selectedIndex = null
}
</script>
The put() function works I think I was given that by somebody here. what I'm wanting to do is to remove from the DevicesList.SelectedDevices list if it is clicked on and can not figure out how to remove from that list.
Any Ideas?
Thanks, Danzig