topElement. Form.js

包含了一些用来处理表单和其子元素的Element的原型方法

License

MIT-style license.

概要
Element. Form.js 包含了一些用来处理表单和其子元素的Element的原型方法
Element
属性
getValue 如果标签是textarea, select 或 input,则获取元素的value属性值
toQueryString 读取表单中的可输入元素,并生成一个query string(基于这个元素的value属性)

topElement

概要
属性
getValue 如果标签是textarea, select 或 input,则获取元素的value属性值
toQueryString 读取表单中的可输入元素,并生成一个query string(基于这个元素的value属性)

top属性

topgetValue

如果标签是textarea, select 或 input,则获取元素的value属性值。如果对可多选的元素上执行getValue的话,将返回一个数组

toptoQueryString

读取表单中的可输入元素,并生成一个query string(基于这个元素的value属性)。

示例

<form id="myForm" action="submit.php"> 
	<input name="email" value="bob@bob.com"> 
	<input name="zipCode" value="90210"> 
</form> 
  
<script> 
$('myForm').toQueryString() ;  // 返回: email=bob@bob.com&zipCode=90210
</script>

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and tidy, and GeSHi

文档中文翻译:zarknight 勘误Email:zarknight@gmail.com asp之家