开发者

Drag and Drop Multiple select boxes

开发者 https://www.devze.com 2023-02-04 04:29 出处:网络
I have two multiple select boxes. I need to use JQuery to drag selected items from one combobox to the next. Is this at all possible?

I have two multiple select boxes. I need to use JQuery to drag selected items from one combobox to the next. Is this at all possible?

I need to drag items from this box

     <select id="select1"  multiple=multiple> 
<option  value="1">test1</option> 
<option  value="2">test2</option> 
<option  value="3">test3</option> 开发者_运维知识库</select>

to this box

<select id="select2" multiple=multiple>
<option value="4">test4</option>
</select>

Any pointers help will be appreciated


What I did was use the JUI sortable JQuery plugin and that worked for me as I wanted it to.

http://jqueryui.com/demos/sortable/#empty-lists

0

精彩评论

暂无评论...
验证码 换一张
取 消