Home > Web Front-end > HTML Tutorial > [转]jquery append 动态添加的元素事件on 不起作用的解决方案_html/css_WEB-ITnose

[转]jquery append 动态添加的元素事件on 不起作用的解决方案_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:18:49
Original
1259 people have browsed it

<br /><br />
Copy after login

用jquery添加新元素很容易,面对jquery append 动态添加的元素事件on 不起作用我们该如何解决呢?on方法中要先找到原选择器(如例.info),再找到动态添加的选择器(如列.delete)。

Copy after login

具体不多说了,请看下面的代码吧。

<br /><br />    测试    

单击我添加动态元素

Copy after login

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template