|
function b2_clear() {
document.getElementById('second').length = 0;
}
function move_first_to_second(value) {
var len = document.getElementById('second').length;
var list=document.getElementById('second');
var i = 0, c = 0;
if (len == 0) {
list.options[list.length] = new Option(value);
len = 1;
}
else {
for (i = 0; i < list.length; i++)
if(list[i].value == value){
c++;
}
if(c>0){
c=0;
}
else{
list.options[list.length]=new Option(value);
}
}
}
Choose 1
Choose 2
Choose 3
Choose 4
Choose 5
|
|
|
|