DragonWar% 2014-10-09 01:25 采纳率: 0%
浏览 46

Ajax之后无法启动jQuery

I am trying to fire this jQuery function when an ajax load completes, can anyone tell me why it won't fire?

jQuery( document ).ajaxComplete(function( event,request, settings ) {  
    $('.testme').each(function () {
        var myhtml = $(this).text().split(' ')[0];
        var ele = $(this);
        $('.pickme').each(function(){
            myhtml == $(this).text().split(' ')[0] ? $(ele).css('display','block') : ""
        })
    })
}); 
  • 写回答

1条回答 默认 最新

  • weixin_33730836 2014-10-09 01:43
    关注

    May be you are using two different jquery identifiers 'Jquery' and '$', try to use same.

    评论

报告相同问题?