资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

表单问题

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

<form   name="form1"   method="post"   action="">  
                  <input   type="text"   name="expertype"     value="asdfsdafsdafsdf">  
                  <input   type="button"   name="Button"   value="选择"   onClick="window.open(selectexperttype.asp)">  
                  <input   type="submit"   name="Submit"   value="查询">  
   
  以上代码中的expertype,用document.all.expertype   能访问,用document.from1.expertype却报告错误,本页面仅此一个form  
  是个啥怪事哟,其它网页用后一种访问方式一点儿问题都没有

网友回答:

发表者:zltostem

document.from1.expertype  
   
  →  
   
  document.form1.expertype  
   
  楼主下次细心点

发表者:xinyunyishui

晕!  
  document.from1.expertype能访问就怪了!  
  应该是document.form1.expertype的说……  
   
  以后要细心^^

发表者:zhuqm

报什么错  
  你的访问方法应该没什么问题  
  你的document.from1.expertype写错了  
  from1改为form1   ^-^

发表者:littleboys

document.forms[0].expertype     //如果就一个表单的,用forms[0],可以不用写form   名称。

发表者:defoliation

document.from1.expertype就可以啦


 

 
热门推荐笔记本: 索尼笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved