看板 [ Ajax ]
討論串[問題] jquery attr onclick IE7 & 8
共 7 篇文章
首頁
上一頁
1
2
下一頁
尾頁

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者DarkKiller (System hacked)時間14年前 (2011/01/29 02:39), 編輯資訊
0
0
0
內容預覽:
不確定 id 是否可以為數字開頭,另外一般配合 jQuery 是用:. $('#id1').click(function(){. alert('334455');. });. 或是:. $('#id1').bind('click', function(){. alert('334455');. })

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者gaekeamql (芋頭)時間14年前 (2011/01/29 02:30), 編輯資訊
0
0
1
內容預覽:
問一下. <input type="button" id=1 onclick="alert('001122');" value="alert">. <input type="button" onclick="$('#1').attr('onclick','');" value="C">. <inpu
(還有386個字)
首頁
上一頁
1
2
下一頁
尾頁