i need to add an option from list1 to list2 when the user clicks on ADD to List button
but sth is wrong with my code it's not working
function AddItem()
{
var opt = document.getElementById("List1").selectedIndex;
document.getElementById("List2").options.add(opt);
}
can anyone tell me whats wrong ??!!!!!!