Implementing Drag n Drop using JQuery

2019-05-21 18:36发布

问题:

I am developing a MVC application wherein I have to implement Drag n Drop functionality. I also want to get the source as well as target items/ records in the table/ div once the item is dropped on a target place. Then both the source and target values will be passed to the action method defined in the controller to update the same in the database.

Can anyone please suggest some links?

回答1:

Use http://api.jquery.com/serialize/ to pass your data and jQuery UI sortables http://jqueryui.com/demos/sortable/ for the drag and drop.