[問題] jquery 執行問題
我的問題是原本的頁面效果是有的
使用完按鈕 .html() 語法後效果跑不出來
html部份
<input type="button" value="變換" id="aaa">
<br>
<div id="ccc">
<div class="ddd">12</div>
<div class="ddd">23</div>
</div>
jqery部份
$("#aaa").click(function(){$("#ccc").html("<div class='ddd'>9</div>")});
$("#ccc .ddd").mouseover(function(){
$(this).css('background-color','#666666')});
$("#ccc .ddd").mouseout(function(){
$(this).css('background-color','#555555')});
http://jsfiddle.net/VZz9a/3/
結構感覺上是差不多
不知道是哪裡出問題
新手上路請多見諒!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.242.181.213
推
05/23 14:31, , 1F
05/23 14:31, 1F
→
05/23 14:32, , 2F
05/23 14:32, 2F
推
05/23 14:37, , 3F
05/23 14:37, 3F
→
05/23 14:48, , 4F
05/23 14:48, 4F
推
05/23 16:36, , 5F
05/23 16:36, 5F
推
05/23 17:09, , 6F
05/23 17:09, 6F
→
05/23 17:09, , 7F
05/23 17:09, 7F