form Element's contents in a manner suitable for attaching to a URI or during a Ajax 'send' command.
Only form elements that have a name attribute will have their values serialized. Serialized values AND names are escaped using
As of the time of thise writing, any
- Calling Convention:
formElement you wish to serialize the values contained in its
textarea. Note that
buttontags are processed even when they are not the element that was clicked!
- A string containing ampersand delimited name/value pairs.
<form action="login.php" method="post" id="userLogin"> <fieldset> <label for="userLogin_email">E-Mail Address:</label> <input type="email" name="email" id="userLogin_email"> <br> <label for="userLogin_password">Password:</label> <input type="password" name="password" id="userLogin_pasword"> <br> <button>Login</button> </fieldset> </form>
Let's say username is Jimbo and the password is 007. The console would log: