Sunday, August 2, 2009

[jQuery] Re: jquery 1.3.2 error with $(':input[@name=submit]')???

remove the @ sign.
it is no longer needed.

On Sun, Aug 2, 2009 at 10:45 PM, John Resig <jeresig@gmail.com> wrote:
Just remove the @ and it'll work fine.

--John


On Sun, Aug 2, 2009 at 12:07 PM, micorreo13 <micorreo13@gmail.com> wrote:

I was using jquery-1.2.6 and now, I started to use jquery-1.3.2, and I
get my first "difference": when I use the wrapped set operation $
(':input[@name=submit]') with jquery-1.3.2 it returns all input
fields, but if I use it with jquery-1.2.6 it returns 0 (as espected).

Is it an error with 1.3.2 version?What do you think I'm doing wrong?
Thank you very much.

P.S.: this wrapped set is used by "jQuery Form Plugin" and, if I have
file uploads I get the alert 'Error: Form elements must not be named
"submit".' from the function "fileUpload" of this plugin.



No comments: