tags:

views:

598

answers:

1

When submitting an upload form, an alert shows up: Error: Form elements must not be named "submit". And no, I don't have any form elements with the name submit. I'm using jQuery version 1.3.2.

What's the fix for this?

+2  A: 

I just saw the problem. It's in line 54 of the jquery.form.js file which says

$(':input[@name=submit]', form).length

From API/1.3/Selectors, it says that

Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work again.

I probably got the problem when I replaced my jQuery version from 1.2 to 1.3. Now, I either have to modify that line or replace my version of jquery.form.js.

Randell