原html
a.php
";
jquery
$(document).ready(function(){
$(".button").bind({
click:function(){
$.get("./create.php",function(data){
$("body").append(data)
})
}
})
$("input").click(function(){
alert(123456);
})
})
新html
原html
a.php
";
jquery
$(document).ready(function(){
$(".button").bind({
click:function(){
$.get("./create.php",function(data){
$("body").append(data)
})
}
})
$("input").click(function(){
alert(123456);
})
})
新html
题主的问题本质地是如何控制动态插入的新节点。用 jQuery 的话,可以这么来:
$(document).on('click', 'input', function() {
alert(123456);
});
已抢111180个
抢已抢47059个
抢已抢133794个
抢已抢32394个
抢已抢19588个
抢