Filling a combobox/listbox
Hi,
1) I am using VBScript to fill a combobox with current mth and previous mth in mmm-yy format. i.e. the combobox should contain "Sept-07" and "Aug-07".
<html>
<head>
<script language="VBScript">
sub abc()
' f1.D1.options(0).value = "a"
' f1.D1.additem "a"
end sub
</script>
</head>
<body onload=abc()>
<form name= "f1" method="Post" action="">
<p><select size="1" name="D1"></select></p>
</form>
</body>
</html>
2) I have a 2 listbox's 1st with say list of 10 items and the 2nd one is empty. I select multiple options in the 1st box and click on a button, the selected items from the 1st box should move to the 2nd box.
|