简体   繁体   中英

How can I add draggable and droppable event listeners with jQuery mobile?

I'm using jQuery mobile to build a mobile version of my site.

A lot of the features rely on drag/drop.

Since jQuery mobile uses Ajax to load the pages, the event handlers for draggable and droppable aren't added to elements on any page except the first.

How can I work around this without using in-line JS

在页面容器div中添加对自定义JavaScript文件的引用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM