[問題]javascript函數取得 GirdView產生的控制 …
不曉得po這版對不對
假設
有一個GridView名叫GridView1
其中有一欄位會放置一BUTTON
這個button會觸發javascript的函數
而不會觸發server的click 事件
當資料綁定後,這些BUTTON 的id 會看起來像
GridView1_ctl03_Button1
GridView1_ctl04_Button1
GridView1_ctl05_Button1
GridView1_ctl06_Button1
現在我想將點擊的id丟給一javascript函數作處理
ex:
OnClientClick=alert(BUTTON的id);
請問該如何實現呢?
--
◣
█◣
█████◣
█████◤
█◤
◤
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.44.189.242
※ 編輯: thisismysoul 來自: 114.44.189.242 (10/31 18:19)
→
10/31 19:54, , 1F
10/31 19:54, 1F
→
11/03 00:08, , 2F
11/03 00:08, 2F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章