Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjarne Fyrstenborg 1280 posts 3990 karma points MVP 7x c-trib
    Aug 14, 2011 @ 12:33
    Bjarne Fyrstenborg
    0

    Hi..

    How can I modify the javascript, so it first validate the field, when you click on submit button?

    Right now it alse shows the error messages if you click into a field and click into another field without enter anything in the field.

    Bjarne

  • Jon Cuthbert 84 posts 173 karma points
    Sep 06, 2011 @ 17:11
    Jon Cuthbert
    0

    Bjarne, to understand your issue, it does validate when you click the submit button but you don't want it to validate on blur until after they have clicked the submit button.

    Sorry about the long wait for a response, I was on vacation for a while. You probably have this figured out now.

  • Bjarne Fyrstenborg 1280 posts 3990 karma points MVP 7x c-trib
    Sep 06, 2011 @ 17:26
    Bjarne Fyrstenborg
    0

    Yes it validates when clicking on the submit button as on this page, where I use the form: http://ak-security.dk/kontakt.aspx

    But I was wondering if it's possible to deactivate the validation when you click into a field and then click to the next field it validate the field you just came from.
    So it instead only validate the field when clicking the submit button.

    Bjarne 

Please Sign in or register to post replies

Write your reply to:

Draft