weixin_33728708 2014-03-24 11:52 采纳率: 0%
浏览 4

Ajax刷新页面

On change of dropdown im reading the drop down value and making on ajax call to fetch the data.I want to refresh the same page. i tried this

$('#status').change(function(){

    var status = $('#status').val();
    $.ajax({
        url : "Partners.action",
        data: {status : status},
        success : function(data) {
            alert(status);
            $("#status").html(data);

        }
    });
});

but it is not refreshing

  • 写回答

2条回答 默认 最新

  • weixin_33725126 2014-03-24 11:54
    关注
    $('#status').change(function(){
    
        var status = $('#status').val();
        $.ajax({
            url : "Partners.action",
            data: {status : status},
            success : function(data) {
                alert(status);
                $("#status").html(data);
               window.location="currentPageURL.aspx?data="+data; /// for refreshing the page
    
            }
        });
    });
    
    评论

报告相同问题?