document.forms对象
来源:互联网 发布:深度linux deepin2016 编辑:程序博客网 时间:2024/06/05 17:00
document.forms,返回一个集合,包含页面所有form元素<!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="../jquery/jquery-1.10.2.min.js"></script><script type="text/javascript">function doSubmit(){var name=document.forms["form1"].name.value;//name为form1的,input name为name的var password = document.forms[0].password.value;//第一个form表单,input name为password的alert(name+" "+password);document.forms["form1"].submit();//提交}</script> </head> <body><form name="form1" action="#" method="get"><input type="text" name="name" value="aaa"/><input type="text" name="password" value="bbb"/><input type="button" name="提交" value="提交" onclick="doSubmit()"/></form> </body></html>
阅读全文
0 0
- document.forms对象
- document.forms
- document.forms
- JavaScript document.forms[]
- document.forms[0]
- document.forms用法
- document.forms用法
- document.forms用法
- document.forms用法
- document.forms[].submit()
- document.forms用法
- document.forms[].submit()
- document.forms[0].
- document.forms[].submit()
- document 文挡对象详解(js获取遍历images集合,forms集合,textbox,Select,div,checkBox)
- document.forms.length 与 document.forms.elements.length 的区别
- document.forms用法示例介绍
- document.forms用法示例介绍
- shiro 判断ajax是否通过身份验证
- 多个PDF合并到一个PDF
- Select2使用实例
- 【java笔试系列七】java多线程
- mybatis查询的时候xml文件中没有对应的sql映射文件
- document.forms对象
- Android ConstraintLayout图文并茂详解(一)
- jni 笔记
- Spring整合mybatis
- python 多线程测试
- 字典(NSDictionary)和JSON字符串(NSString)之间互转
- Keil一进入调试器就退出的解决方法
- MySQL 分区
- 使用spring-data-redis配置集群错误