vasilanthropos
02-16-2007, 03:12 PM
Hello. I want to do the following. I have a combo box with some phone numbers and i want by clicking on them to move them in a new combo box that is next to it (it is like a phonebook where i choose the phones that i want). My code is the following
<select name="combo1" size="10" multiple onchange="addme();">
<option value="1">11111</option>
<option value="2">22222</option>
</select>
<select name="combo2" size="10" multiple >
</select>
<script>
function addme(){
//document.combo1.options[document.combo1.selectedIndex].value;
// how can i get all the selected values and append them in the second
//combo box
}
</script>
<select name="combo1" size="10" multiple onchange="addme();">
<option value="1">11111</option>
<option value="2">22222</option>
</select>
<select name="combo2" size="10" multiple >
</select>
<script>
function addme(){
//document.combo1.options[document.combo1.selectedIndex].value;
// how can i get all the selected values and append them in the second
//combo box
}
</script>