我已经克隆像jQuery的克隆元素
<div class = "button1"> Button1</div>
<div class = "text1Container">
<div class="myButton"></div>
</div>
<div class = "text2Container"></div>
这里元素我的jQuery
$(".button1").click(function() {
$(".text1Container").clone().appendTo(".text2Container");
});
所以现在我想在“text2Container” 这样一套点击功能,但它没有工作
//why not working
$(".text2Container .myButton").click(function() {
alert('hello');
});
不工作,同样的问题 –
我试图与这.button1也没有工作 –
@UsmanAhmad:检查演示链接。 – Unknown