the compact javascript framework
in partnership with mediatemple
Contains Element prototypes to deal with Forms and their elements.
MIT-style license.
Element. Form.js | Contains Element prototypes to deal with Forms and their elements. |
Element | Custom class to allow all of its methods to be used with any DOM element via the dollar function $. |
Properties | |
getValue | Returns the value of the Element, if its tag is textarea, select or input. |
toQueryString | Reads the children inputs of the Element and generates a query string, based on their values. |
Custom class to allow all of its methods to be used with any DOM element via the dollar function $.
Properties | |
getValue | Returns the value of the Element, if its tag is textarea, select or input. |
toQueryString | Reads the children inputs of the Element and generates a query string, based on their values. |
Returns the value of the Element, if its tag is textarea, select or input. getValue called on a multiple select will return an array.
Reads the children inputs of the Element and generates a query string, based on their values. Used internally in Ajax
<form id="myForm" action="submit.php"> <input id="email" value="bob@bob.com"> <input id="zipCode" value="90210"> </form> <script> $('myForm').toQueryString() </script>
email=b@bob .com&zipCode=90210 ob
returns the element passed in with all the Element prototypes applied.
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi