开发者

Include jquery ui function in plugin

I am wondering how I can include the drag functionality from the jquery UI library in a separate开发者_C百科 plugin I am modifying. I want to make a div draggable, but don't want to have to write my own method.


I would suggest building the plugin as a jquery ui widget and just making the jquery ui draggable widget a dependency of your widget. then you make your div draggable using $(div).draggable();.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜