"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<script src="jquery-1.6.2.js"></script>
<script>
$("#test").live("click", function(){
alert('');
});
$("#tbl").live("mouseover",function(){
$("#title").html('<input id="test" type="button" value="test button" />');
});
$("#tbl").live("mouseleave",function(){
$("#title").html('');
});
</script>
</head>
<body>
<table id='tbl' width="200" border="1">
<tr>
<td id="title"> </td>
</tr>
<tr>
<td id="content"> </td>
</tr>
</table>
</body>
</html>
$(“#test”)。live(“click”...)不起作用,但如果我改变鼠标悬停它的作品。 任何人都可以提供帮助吗?jquery:鼠标悬停工作,但点击不会'工作
感谢, 程
不错!非常感谢! – cheng
是的,每当你移动或点击导致按钮一遍又一遍地被替换的鼠标时,mouseover事件被触发。 –