参考自:http://my.oschina.net/lishixi/blog/31612
<script>
jQuery(document).ready(function($) {
$(‘#clickme‘).bind(‘click‘, function() {
alert("sdfw");
var html = "<div class=‘clickyou‘>Another target</div>";
$("#divContent").html(html);
//$(‘#divContent‘).append(‘<div class="clickyou">Another target</div>‘);
$(‘#systemExperimentDialog‘).dialog(‘open‘);
});
$(‘.clickyou‘).live(‘click‘, function() {
alert("Live handler called.");
});
});
</script>
<body>
<div id="systemExperimentDialog" title="系统实验列表">
<div id="divContent"></div>
</div>
</body>
时间: 2024-10-29 19:11:22