看板 [ Ajax ]
討論串[問題] 在select物件中增加onchange attribute...
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者TonyQ (^^)時間16年前 (2009/12/04 17:20), 編輯資訊
0
0
1
內容預覽:
type.onchange=function(){. anotherFn(theParam);. };. //要注意一下theParam 的變數週期(scope)的問題就是.... ex. type.onchange=function(){. alert("hi");. }. --. What do
(還有66個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者luckymoon (青谷)時間16年前 (2009/12/03 01:15), 編輯資訊
0
0
0
內容預覽:
這邊新增了一個select的標籤,但你沒有做插入的動作啊。. 假設說你是要在一個表單中新增一個select的標籤,那表籤的名程假設為form1。. var type = document.createElement("select");. for(var i = 0; i < 9; i++){. v
(還有333個字)

推噓0(0推 0噓 7→)留言7則,0人參與, 最新作者nov17th75 (oxygenic)時間16年前 (2009/12/02 23:54), 編輯資訊
0
0
0
內容預覽:
如標題. 我想在 html select 當中增加 onchange attribute. 原本用的方法是. <script type="text/javascript">. var type = document.createElement( "select" );. type.onchange
首頁
上一頁
1
下一頁
尾頁