[問題] 物件不支援此屬性或方法

看板Ajax作者 (Shokun)時間16年前 (2008/06/05 17:31), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
這是function部分 function conf_del_ctg(sid){ if(confirm("確認刪除#" + sid + "分類?") == false){ return false; } delctg.submit(); } 然後這是其中一行的php (太長..所以分行) echo '</td><form name="delctg" method="post" action="admin.php?show=ctg"> <input type=hidden name="action" value="delete_ctg"> <td><input type=button value="刪除" onclick=conf_del_ctg('.$record[0].')> </td></form></tr>'; 按下按鈕就跑出就如標題般的錯誤 如果把 delctg.submit(); 給註解起來那就正常 請問問題出在哪~"~? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.14.9.105

06/05 18:48, , 1F
document.delctg.submit();
06/05 18:48, 1F

06/05 20:19, , 2F
thx done!
06/05 20:19, 2F
文章代碼(AID): #18Hx9tVI (Ajax)