[jQuery] Re: Validate form onload/reload

2009-04-22 Thread Skatan
I got it to work! Solution: body onload='Javascript:$(#texttests).valid();' Thanks! /N On 17 Apr, 20:09, Skatan i...@klejm.se wrote: I would like to validate my form with jQuery when the pages directly when the page is loading without need of submit, keyup. This because I want it to work

[jQuery] Re: Validate form onload/reload

2009-04-18 Thread Skatan
Where should I put that code line? This is my JS: script type=text/javascript // extend the current rules with new groovy ones $().ready(function() { var validator = $(#texttests).bind(invalid-form.validate, function() {

[jQuery] Re: Validate form onload/reload

2009-04-17 Thread James
Try: $(#myform).validate(validation_options).form(); You might need to add a condition check to make sure the form was submitted, since you probably don't want this code to run automatically on the initial form load before the user actually submitted the form for the first time. On Apr 17, 8:09