dongleman4760
dongleman4760
2017-08-10 07:02

在php和ajax代码中的Jquery ajax问题

  • php
  • ajax
  • javascript
  • jquery

Here in the following code in jquery i get the alert test1 but when i try to get alert test2 i dint got that... there is some issue in code please help me to resolve.

$(document).ready(function() {
  $(".delete-item-details").click(function() {
    alert('test1');
    var id = $(this).attr('ids');
    alert('test2');
    var order_id = $("#order_id").val();

    goto_url = "/order/DeleteOrderDetailItems/" + id;
    dataString = 'id=' + id + '&order_id=' + order_id;
    $.ajax({
      type: "POST",
      url: goto_url,
      data: dataString,
      cache: false,
      success: function(html) {
        $("#row-id-" + id).fadeOut();
        $("#total_span").html(html);
      }
    });
  });
});
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐

换一换