How we get the id of droppable element, when dropped an item? Here i use jquery ui and asp.net mvc.
4条回答 独厮守ぢ (楼主) 2020-12-04 15:05 You hookup a "drop" event and interrogate the element that you just dropped. The element being the parameter "ui" in the function below $( ".selector" ).droppable({ drop: function(event, ui) { ... } }); Have a look at the documentation. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You hookup a "drop" event and interrogate the element that you just dropped. The element being the parameter "ui" in the function below
"drop"
"ui"
$( ".selector" ).droppable({ drop: function(event, ui) { ... } });
Have a look at the documentation.