jquery ajaxStart not working

后端 未结 1 1757
灰色年华
灰色年华 2021-01-11 23:21

If you click on the click here to order button here: http://www.game onglove.com/ gog/ test3.html, and then click the same button on the lightboxed window that pops up, an a

1条回答
  •  清酒与你
    2021-01-12 00:16

    That element's getting created later, you have to bind after it's created, or a bit simpler just bind the handler to document from the start:

    $(document).ajaxStart(function() {
      $('#cboxLoadingGraphic').show();
      $('#cboxLoadedContent').hide();
    }).ajaxStop(function() {
      $('#cboxLoadingGraphic').hide();
      $('#cboxLoadedContent').fadeIn('slow');
    });
    

    0 讨论(0)
提交回复
热议问题