This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Drag and drop in Listbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Drag and drop in Listbox" Watch "Drag and drop in Listbox" New topic
Author

Drag and drop in Listbox

lakshmi v.samy
Ranch Hand

Joined: Feb 02, 2006
Posts: 30
Hi Everybody,

I have list box, I want to drag any item in the list box and drop into some other index.

<select id="oResults" size=18 type=select-one >

<Option value="1">Apple
<Option value="2">Mango
<Option value="3">Banana
<Option value="4">Orange
<Option value="5">Pineapple
<Option value="6">Cherry
<Option value="7">Grapes

</select>

</BODY>Can you please help he how to do this.
Thans in advance
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Not going to happen.

You need to do something like this: http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Drag and drop in Listbox