{"issue":{"state":"open","created_at":"2011-11-24T16:26:15Z","updated_at":"2011-11-24T17:01:08Z","comments":1,"user":{"gravatar_id":"24e46a8d367b04837411f8dcec2b8bb5","id":944499,"url":"https://api.github.com/users/jimmyheaddon","login":"jimmyheaddon","avatar_url":"https://secure.gravatar.com/avatar/24e46a8d367b04837411f8dcec2b8bb5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"When in the checkForm function, the this.elements() call does not always return the form elements, especially if you try and validate the form straight after the load has finished and if you have multiple forms on a page (e.g. with multiple partial views in MVC3).\r\n\r\nthis.elements() returns correctly for my first form but returns 0 for the following forms.","assignee":null,"id":2343145,"number":262,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"checkForm and this.elements()","html_url":"https://github.com/jzaefferer/jquery-validation/issues/262","closed_at":null,"milestone":null,"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/262"},"action":"created","comment":{"created_at":"2011-11-24T17:01:08Z","updated_at":"2011-11-24T17:01:08Z","user":{"gravatar_id":"24e46a8d367b04837411f8dcec2b8bb5","id":944499,"url":"https://api.github.com/users/jimmyheaddon","login":"jimmyheaddon","avatar_url":"https://secure.gravatar.com/avatar/24e46a8d367b04837411f8dcec2b8bb5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"On further inspection this is caused when using jQuery UI tabs, if you have a form per tab (as I do with the use of MVC3 partial views) and try to validate all of the forms, only the form on the selected tab will return a count for this.elements() as the filter of \":hidden\" blocks the other non-selected tab elements.","id":2867303,"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/comments/2867303"}}