Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
171
rated 0 times [  178] [ 7]  / answers: 1 / hits: 5071  / 10 Years ago, thu, july 10, 2014, 12:00:00

I tried a lot to search for making a Select list draggable but could not find any thing on that. Can anyone tell me how should I do it? Check this code. http://jsfiddle.net/Nj5Rj/



Html:



<select id=draggable multiple=multiple>
<option value=1>foo</option>
<option value=2>bar</option>
<option value=3>foobar</option>
<option value=4>foobarbaz</option>
</select>


jQuery:



$(function() {
$( #draggable ).draggable();
});

More From » html

 Answers
2

jQuery Draggrable



by using jquery you can achieve what you want.



simple syntax :



on Javascript :



 $(function() {
$( #draggable ).draggable();
});


on HTML :



<div id=draggable class=ui-widget-content>
<p>Drag me around</p>
</div>


for the full API reference of jQuery-ui Draggable refer to This



you can download jquery-ui from jQuery-ui and select what components fits your needs


[#43988] Wednesday, July 9, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
agustindejonm

Total Points: 738
Total Questions: 84
Total Answers: 84

Location: Northern Ireland
Member since Mon, Nov 14, 2022
2 Years ago
agustindejonm questions
Fri, Jun 25, 21, 00:00, 3 Years ago
Fri, Sep 18, 20, 00:00, 4 Years ago
Sat, May 16, 20, 00:00, 4 Years ago
;