dongleman4760
2017-08-10 07:02在php和ajax代码中的Jquery ajax问题
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条回答
为你推荐
- jQuery AJAX POST到PHP问题
- ajax
- post
- php
- jquery
- json
- 3个回答
- 使用JQuery AJAX和php将数据提取到mysql数据库
- ajax
- database
- php
- jquery
- mysql
- 4个回答
- 使用jQuery和AJAX更新SQL的问题
- javascript
- ajax
- php
- jquery
- mysql
- 2个回答
- 使用PHP,Ajax和Jquery更改密码
- ajax
- mysql
- php
- jquery
- 3个回答
- jQuery AJAX没有得到PHP的响应
- json
- ajax
- javascript
- jquery
- php
- 2个回答
换一换