toSeeMyDream

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内容)

分类:

技术点:

相关文章:

  • 2021-08-18
  • 2021-10-27
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-01-02
  • 2021-05-22
  • 2022-12-23
  • 2021-09-26
相关资源
相似解决方案