没有合适的资源?快使用搜索试试~ 我知道了~
按照排序拖拽,可以在指定的框内拖拽
共3个文件
css:1个
html:1个
js:1个
需积分: 0 0 下载量 5 浏览量
2015-07-27
14:23:23
上传
评论
收藏 2KB ZIP 举报
温馨提示
按照排序拖拽,可以在指定的框内拖拽$('.drag').draggable({ appendTo: 'body', helper: 'clone' }); $('#dropzone').droppable({ activeClass: 'active', hoverClass: 'hover', accept: ":not(.ui-sortable-helper)", // Reject clones generated by sortable drop: function (e, ui) { var $el = $('<div class="drop-item pull-left">' + ui.draggable.text() + '</div>'); $el.click(function () { $(this).detach(); }); $(this).append($el); } }).sortable({ items: '.drop-item', sort: function() { // gets added unintentionally by droppable interacting with sortable // using connectWithSortable fixes this, but doesn't allow you to customize active/hoverClass options $( this ).removeClass( "active" ); } });
资源推荐
资源详情
资源评论
收起资源包目录
拖拽.zip (3个子文件)
拖拽
css
style.css 417B
index.html 834B
js
index.js 697B
共 3 条
- 1
资源评论
qq_30142699
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功