"MyParentPage.htm" uses the load function of jquery to load('myDiv.htm') //
myDiv.htm only contains:
<a href="#" class="bt-cbox">Click me</a>
I have th开发者_如何学JAVAe following in "MyParentPage.htm"
$(document).ready(function() {
$(".bt-cbox").click(function() {
alert("handler hit");
});
});
Why is the my alert not being hit
$(document).ready(function() {
$(".bt-cbox").live("click",function() {
alert("handler hit");
});
});
See live
精彩评论