Well, this is my pretty simple JS function
- function AddItem()
-
{ var opt = document.getElementById("List1");
-
var value=opt.options[opt.selectedIndex].text;
-
var newItem=document.createElement("option");
-
newItem.text=value;
-
document.getElementById("List2").options.add(newItem);
-
}
-
and this is my List 2 (destination list) ==>
- <select size="6" id="List2" name="list2[]" ></select>
these data are sent to DB.php which is supposed to take the posted data into the DB and thats the page at which i should loop through the options as u said but dont know how ??