in my clge they have given a task to transfer the item from one listbox to another listbox. while working , i got an idea to use the drag and drop method. but i dono how to do tats y i asked for help. pls give me ur idea on how to do it.
previously i tried this code. but this is not a good approach
[HTML]<html>
<head>
<script language="JavaScript">
function AddItem()
{
var i = document.getElementById('Combobox1').selectedIndex ;
var a = document.getElementById('Combobox1').options[i].text;
document.getElementById('Combobox2').add(new Option(a,a))
document.getElementById('Combobox1').remove(new Option(a,a))
}
</script>
</head>
<body>
<form>
<select name="Combobox1" id="Combobox1" onclick="AddItem()">
<option value="IName">Name</option>
<option value="Age">Age</option>
<option value="class">Class</option>
</select>
<select name="Combobox2" id="Combobox2">
</select> <br /><br />
</body>
</html>[/HTML]