jquery draggable options

后端 未结 6 1547
梦谈多话
梦谈多话 2021-01-11 15:48

i want the draggable object to revert back to its original position when i click a button. i used \'destroy\' option but it doesnt seem to work. it disables the dragging but

6条回答
  •  被撕碎了的回忆
    2021-01-11 16:14

    How about this?

    
    

    I've made some assumptions, such as the nextImg object having an id of "nextImg" so that I can bind the click event using jQuery (one less step in the javascript event binding process?) I'm also assuming that you don't really want to destroy the drag functionality.

提交回复
热议问题