Php 通过拖放jQuery插件使用AJAX

Php 通过拖放jQuery插件使用AJAX,php,jquery,ajax,drag-and-drop,Php,Jquery,Ajax,Drag And Drop,基于 如果我想在DragTable被放到它的容器中之后增加我的一个数据库表中的值(投票),我会在下面的这个块中使用$.ajax()吗 或者这种方法对这个特定的插件不起作用吗?是的,可以 drop: function( event, ui ) { $( this ) .addClass( "ui-state-highlight" ) .find( "p" ) .html( "Dropped!" ); $.ajax(/*** your

基于

如果我想在DragTable被放到它的容器中之后增加我的一个数据库表中的值(投票),我会在下面的这个块中使用$.ajax()吗

或者这种方法对这个特定的插件不起作用吗?

是的,可以

drop: function( event, ui ) {
    $( this )
        .addClass( "ui-state-highlight" )
        .find( "p" )
        .html( "Dropped!" );
    $.ajax(/*** your code ***/);
}
drop: function( event, ui ) {
    $( this )
        .addClass( "ui-state-highlight" )
        .find( "p" )
        .html( "Dropped!" );
    $.ajax(/*** your code ***/);
}