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.

    评论

报告相同问题?

悬赏问题

  • ¥50 关于在matlab上对曲柄摇杆机构上一点的运动学仿真
  • ¥15 jetson nano
  • ¥15 :app:debugCompileClasspath'.
  • ¥15 windows c++内嵌qt出现数据转换问题。
  • ¥20 公众号如何实现点击超链接后自动发送文字
  • ¥15 用php隐藏类名和增加类名
  • ¥15 算法设计与分析课程的提问
  • ¥15 用MATLAB汇总拟合图
  • ¥15 智能除草机器人方案设计
  • ¥15 对接wps协作接口实现消息发送