Error Message
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9718
    Felix
    Guest

    Hi,

    I just tried to use ‘lettersonly’ validation class to limit the text input of name text field.

    How I can change the error message from ‘One or more fields have an error. Please check and try again.’ into ‘Alphabets only ‘ as there is no option in the message section to change.

    Cheers,
    Felix

    #9732
    Dinesh
    Keymaster

    Hi Felix,

    As of now we don’t have such option for letters only. So please keep this javascript code in any of your javascript file and this should work for you.

    jQuery.extend(jQuery.validator.messages, {
       lettersonly: jQuery.validator.format('YOUR_TEXT_HERE')
    });

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Error Message’ is closed to new replies.