SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Learning...
    Join Date
    Jan 2003
    Posts
    781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Validation Message

    Hi,

    I have client validation working - dataannotations and jquery.validate.min

    I have a custom ajax check, it is working normal and returns the right status. Please note that this is stand alone check which is happening on blur and on form submit when validation passes.

    If the custom check fails, i would like to show the message right next the filed as client validation does. Any pointers?

    Thanks
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,197
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Hi tahirjadoon,

    By default the jQuery validation plugin should always add a label element directly after the form input field, see the below link which shows the default behavior of the error message that gets returned.

    http://jquery.bassistance.de/validat...data-demo.html

  3. #3
    Learning...
    Join Date
    Jan 2003
    Posts
    781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •