0

I would like to provide a message as tooltip of a custom Validator based on some condition in Javascript.

Can any one please help me out?

1 Answer 1

1

The validator will no doubt spit out some HTML markup, so you could use some jQuery like this:

if(yourCondition) {
  $('#id-of-validator-span').attr('title', 'Your tooltip value');
}
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Mr Sam for the response.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.