Calling function after .load (Jquery)

后端 未结 3 2006
一向
一向 2020-12-01 21:28

Having a little difficulty getting a function to call after a .load:

$(function(){
    $(\'a.pageFetcher\').click(function(){
        $(\'#main\').load($(thi         


        
3条回答
  •  感情败类
    2020-12-01 22:12

    you can also use bootstrap loading button to trigger the .load() and the function after .load()

    HTML

    
    

    JQUERY

     $("#refresh").click(function() {
    
        var $this = $(this);
        $this.button('loading');
    
        $("#container").load("/showemails.aspx?page=1 #container", function() {
             $("#refresh").button('reset');
          });
    
         return false;
      });
    

提交回复
热议问题