码迷,mamicode.com
首页 > 其他好文 > 详细

处理动态添加的元素事件无效

时间:2016-10-10 19:18:05      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:

$(document).bind("input propertychange change","事件元素选择器",function(){

});
// 搜索按钮点击事件
$(document).on(‘click‘,ele,function(){
// ele为对应的事件元素选择器 如:‘#appSpecies‘
})

处理动态添加的元素事件无效

标签:

原文地址:http://www.cnblogs.com/qhhw/p/5946390.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!