Fight With Me!!!

导航

jQuery 清除div内容

$.ajax({
            url: "SearchSN.aspx",
            data: "SN=" + $("#txtStorageSN").val(),
            cache: false,
            success: function (html) {
                $("#showResult").empty();
                $("#showResult").append(html);
                $("#showResult").css("color", "red");
            }

        });

 

页面:<div id="showResult"></div>

 

$("#showResult").empty();//清除div内容(Div内容是通过aspx页面进行动态添加,需要先清除div内容)

posted on 2015-04-16 19:12  nickTimer  阅读(2986)  评论(0编辑  收藏  举报