Link to home
Start Free TrialLog in
Avatar of xiaoyunwu
xiaoyunwuFlag for United States of America

asked on

jquery validator textarea min words

Is there any way to use jquery validator to validate the minum of words in the textarea, separated by comma, and tell the custom error message?

For example: 1,2,3 4,5 is 4 words when I split with comma. I need to let them know the minum is 5 words if they submit the form using jquery validator.
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xiaoyunwu

ASKER

$('#Your_form_id').validate({
    rules: {
        your_text_area_id: {
            min5: true    // there should be no ; here.
        }
    }
});