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
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() {
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
3 matches
Mail list logo