Skip to main content

Bug Tracker

Side navigation

#4619 closed bug (invalid)

Opened May 03, 2009 03:22PM UTC

Closed May 03, 2009 11:55PM UTC

submit(fn) cannot work in jquery 1.3.2

Reported by: jamesfancy Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

I am using jquery 1.3.2.

I write code to find a form and submit with a function. It cannot work.

Please watch attached files.

test.html is the main page, it should alert and submit automaticlly while the page is ready. But it does not work.

Attachments (1)
  • test.zip (0.4 KB) - added by jamesfancy May 03, 2009 03:22PM UTC.

    test.html is main page.

Change History (1)

Changed May 03, 2009 11:55PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

When

.submit()
is called with a function argument, it merely sets the handler that will be called when the form is submitted by other means. If you want to submit a form, either use
.trigger("submit")
or
.submit()
with no argument.