I have tested that “minlength-validate-code” separate and it work. Allso downloaded all file I need for it but problem is how to use it with above code. Any ideas how to use it together?
Hmm, dont know if i followed your instruction correct or not, but still not work really. Submit button work after I typed in 3 characters but result.php loads as soon something typed in.
I have change form and field name efter this code from jquery, but dont know how to use it really with rest of code above. Anyone know how to use? I cant get it work.
Consider the keyup function. Should it do its thing if the form field is not valid? If not, put in a sanity-check at the start of the keyup function so that if the keyup function should not run, you can return out of the function.
Not sure if that help in this case? I can’t see why minlength only work when try to click in submit-button. Update codesnip seems run whit or whiteout minlength anyway. Should work even for update because it is same text field?
I tested that code-snip, just pasted in somewhere $(document).ready(function() section but didn’t help. I guess i need some rest I think, worked on this more than 15-20 hours. Thanks for your help pmw57 anyway. Im m sure it will help in this case but i will look more on that valid method link later.
Which indicates that you need to check if the form is valid before resut.php is loaded. The validators valid method would be appropriate to use for that task.