[jQuery] Re: Validate plugin not working
Perhaps it says somewhere in the doc that the name attribute is required but I sure as hell couldn't find it. Anyway try adding the name attribute with the same value as your id attribute for each form element. You should be relieved by what you find ;) On Mar 23, 3:29 pm, Brendon Gleeson brendon.glee...@gmail.com wrote: Sorry I couldn't wait for my other post to showup, so I made a typo: html head titlejQuery Validation test/title script type=text/javascript src=js/jquery-1.3.2.min.js/script script type=text/javascript src=js/jquery-validate/ jquery.validate.js/script script type=text/javascript $(document).ready(function(){ $(#poesForm).validate({ rules : { name: { required : true } } }); }); /script /head body form id=poesForm input type=text id=name class=required / input type=submit / /form /body /html
[jQuery] Re: Validate plugin not working
I had a eureka moment last night, when i stumbled into that solution.. didn't see any mention of it in the docs though..
[jQuery] Re: Validate plugin not working
I've added anothe paragraph: http://docs.jquery.com/Plugins/Validation/Reference#Markup_recommendations Also, when you enable the debug-option, a warning is logged for every input that doesn't have a name-attribute. Jörn On Tue, Mar 24, 2009 at 5:56 PM, Brendon G. brendon.glee...@gmail.com wrote: I had a eureka moment last night, when i stumbled into that solution.. didn't see any mention of it in the docs though..
[jQuery] Re: [validate plugin] - not working with multiple forms
Try this: $(.validate).each(function() { $(this).validate(); }); Jörn On Thu, Jan 29, 2009 at 7:00 PM, Joel Taylor joelatay...@gmail.com wrote: hi all - so I'm using the 'validate' plugin, and I seem to have an issue where if I have multiple forms, the plugin only validates the first form. $('.validate').validate(); Obviously I have multiple forms, so I'm using a class selector. But when I'm testing the form, the validate plugin throws me to the first form with errors shown. I'm using jQuery version 1.2.6 (as 1.3.1 has Safari bugs) Any help?
[jQuery] Re: [validate plugin] - not working with multiple forms
Thanks Jorn! That worked. :) Phew. On Jan 29, 12:05 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Try this: $(.validate).each(function() { $(this).validate(); }); Jörn On Thu, Jan 29, 2009 at 7:00 PM, Joel Taylor joelatay...@gmail.com wrote: hi all - so I'm using the 'validate' plugin, and I seem to have an issue where if I have multiple forms, the plugin only validates the first form. $('.validate').validate(); Obviously I have multiple forms, so I'm using a class selector. But when I'm testing the form, the validate plugin throws me to the first form with errors shown. I'm using jQuery version 1.2.6 (as 1.3.1 has Safari bugs) Any help?