作者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