作者hirabbitt (兔子)
看板Web_Design
標題[問題] getElement之後?
時間Mon Sep 28 11:06:34 2009
function c2(){
F1=getElementByName("F1");
F1.action="test2.php";
}
但是沒有用
F1是一個form
我想改它的action的值
請問應該怎麼寫?
謝謝
--
◤ __ \__◣
◢◤◢◤ ψhirabbitt
◢ ◤ ◢███◣
◢███◣
黑兔子我啊 █████
█████ 所以所以
██
●█
● █▇███
最喜歡白兔子了 ██
╱╲ ●◥█████◣● 我們要一直在一起喔
◥
╱█
╱╱ ● ◥████ ˇ
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.13.127.91
※ 編輯: hirabbitt 來自: 163.13.127.91 (09/28 11:13)
推 arrack:getElementsByName 09/28 11:14
→ arrack:另外回傳的是Array 09/28 11:16
→ hirabbitt:加了s還是不能耶 陣列中的action不就叫action嗎? 09/28 11:26
→ hirabbitt:喔用setAttribute就好了 09/28 11:29
→ hirabbitt:謝謝 09/28 11:29