This version is old school.
Please find jQuery plugins on npm.
messages - A lightweight jQuery plugin for showing messages around fields and other HTML elements.
by Kolge Pratik
Use the messages plugin for showing beautiful messages around form fields or other HTML elements. You can show and hide multiple messages on a single field.