[問題] 請問一個在JavaScript中button action的問題...
不知是否因為我使用NETUI的關係
<netui:button type="submit" value="=" action="calculate" tagId="eqButton"/>
這是我button的html碼
我參考網路上的寫法使用在JavaScript中寫成
document.getElementById("eqButton").action="calculate";
document.getElementById("eqButton").submit();
結果應該是沒有執行action...
但是document.getElementById("eqButton")確實有抓到,
那就是後面的寫法有問題了?@@
可否請高手指點一下,感謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.33.8.54
→
02/14 21:50, , 1F
02/14 21:50, 1F
→
02/14 21:50, , 2F
02/14 21:50, 2F
→
02/14 21:56, , 3F
02/14 21:56, 3F
→
02/14 21:56, , 4F
02/14 21:56, 4F
→
02/14 22:05, , 5F
02/14 22:05, 5F
→
02/18 02:26, , 6F
02/18 02:26, 6F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章