Submitting a form via submit event having hidden fields named submit
Hi all,
submitting a form via the submit() event - containing a form element which is hidden and having the name "submit" will fail in an javascript error.
- <form method="post" action="url.php">
- <input type="text" name="sometext" />
- <input type="hidden" name="submit" value="go" />
- </form>
Maybe because of not having an input type="submit" ?
Following javascript error occurs on firebug console:
- TypeError: s[y] is not a function
- http://localhost/javascript/jquery.js
- Line 2
I am using jquery.1.9.1 - maybe this is a hint... Is this a bug, or is it more an must have of the submit tag?
Nils