Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I want to improve my forms with jQuery Validation Engine. For more accessibility, I want to put the error in a tag below the input tag.
<input type="text" ... > <p class="error">Error message</p>
Is it possible ?
Thank you !
p
errorPlacement
Yes you can do what you want, see here Its the jquery validation plugin allows you to customize your error messages.
eg.
var validator = $( "#myshowErrors" ).validate(); validator.showErrors({ "firstname": "I know that your firstname is Pete, Pete!" });
see this
Add a comment
Required, but never shown
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.
Explore related questions
See similar questions with these tags.
ptag already there or do you want to add it dynamicly?errorPlacementsetting: jqueryvalidation.org/validate/#errorplacement