开发者

Update SQL row on mouse drag

开发者 https://www.devze.com 2023-04-04 02:57 出处:网络
I have a php page which displays 3 columns from 3 different sql q开发者_如何学Pythonueries.I am planning to apply drag and drop so that when I drag an item from one of the columns and drop it to the 2

I have a php page which displays 3 columns from 3 different sql q开发者_如何学Pythonueries. I am planning to apply drag and drop so that when I drag an item from one of the columns and drop it to the 2nd column it will change and update the sql entry to match that of the 2nd column results.

I have seen jquery draggable but am a noobie. can anyone show me how to do this?


$("#draggable").draggable();
$("#droppable").droppable({
  drop: function() { update_sql(); }
});
0

精彩评论

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