Submitting a form via submit event having hidden fields named submit

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.

  1. <form method="post" action="url.php">
  2. <input type="text" name="sometext" />
  3. <input type="hidden" name="submit" value="go" />
  4. </form>

Maybe because of not having an input type="submit" ?

Following javascript error occurs on firebug console:

  1. TypeError: s[y] is not a function
  2. http://localhost/javascript/jquery.js
  3. 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