作者picachuxyz (XHTML&CSS&PHP)
看板PHP
標題[請益] <form>的xhtml1.0 strict 檢測 不能用name屬性?
時間Wed Jan 4 22:58:57 2006
ling.php" method="post" name="mailform">
^Error: there is no attribute name for this
element (in this HTML version)
表單可以通過檢測,但是form不行,如果沒有name又無法用js控制,
要怎麼改呢? 3Q
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.202.165
1F:推 wawawa:用id 01/05 01:16
2F:推 gckenny:document.forms[0] 01/05 08:50
3F:推 picachuxyz:請問這是什麼意思....document.forms[0]....? 01/05 15:29
4F:推 gckenny:指向第一個form,這樣form就算沒有name也能操作... 01/05 16:32
5F:→ gckenny:上面是用js時的用法 01/05 16:36