I have a problem whereby the validate function picks up :inputs in a sub
form, but only in IE

 

<form>

                <input name=one />

                <input name=two />

<form>

                <input name=three />

                <input name=four />

                </form>

</form>

 

In ie

form.elements.length == 4

 

In others

form.elements.length == 2

 

to get round it you could remove elements matching "form :input"

 

line 413 in jquery.validate.js

return $(this.currentForm)

.find(":input")

      .not($(this.currentForm).find("form :input"))

      .not(":submit, :reset, :image, [disabled]")

      .not(this.settings.ignore)

      .filter(function() {

            .

      });

 

The same thing also happens in serializeArray, so extra fields are sent on
form submits

 

Has anybody else come across this?

 

Ant

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to