Hi
You can use the
JS function below to fullfil your requirement:
function AddItems()
{
var myForm = document.Form1; //Form Name
var mySel = myForm.sel; // Listbox Name
var myOption;
myOption = document.createElement("Option");
myOption.text = document.getElementById("txt").value; //Textbox's value
myOption.value = document.getElementById("txt").value; //Textbox's value
mySel.add(myOption);
}
Regards
Mike
Fortune favours the brave, so don't regret on missed oppurtunities.