将列表框记录拖到另一个列表框中 [英] Dragiing listbox records to another listbox
本文介绍了将列表框记录拖到另一个列表框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以建议我创建可拖动列表框的最佳方法,我使用.net mvc 4和jquery。我有两个列表框。我想将记录从第一个列表框拖到第二个列表框而不进行任何页面刷新。
谢谢&问候
我尝试过:
我想拖动记录从第一个列表框到第二个列表框,没有任何页面刷新。
解决方案
1。从谷歌CDN中包含最新版本的jQuery库和jQuery UI。
2.在jQuery javascript库之后包含jQuery fieldChooser插件。
view来源:
3.Markup html结构。
查看源代码:
< pre lang =text>
第1项
第2项
第3项
第4项
第5项
...
4.javascript。
< br $>
查看源
< script>
( document )。ready( function (){
var
chooser =
Hi ,
Can anyone suggest me the best way to create a draggable listbox , I am using .net mvc 4 and jquery .I have two listboxes . I want to drag records from 1st listbox to 2nd list box without any page refresh .
Thanks & Regards
What I have tried:
I want to drag records from 1st listbox to 2nd list box without any page refresh .
解决方案
1. Include the latest version of jQuery library and jQuery UI from google CDN.
2. Include jQuery fieldChooser plugin after jQuery javascript library.
view source:
3.Markup html structure.
view source:
<pre lang="text">
Item 1
Item 2
Item 3
Item 4
Item 5
...
4.The javascript.
view source
<script>
(document).ready(function () { var
chooser =
这篇关于将列表框记录拖到另一个列表框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文