Dynamic JavaScript Form Validation | JavaScriptSource

Dynamic JavaScript Form Validation

Michael Leigeber Jan 26, 2009

General

This lightweight form validation script allows you to easily add attractive validation messages to your forms. There is no markup to add on your existing page. Just call the inlineMsg() function when you wish to display a message. The position of the form element (or any other element) is dynamically calculated.


See the demonstration here.

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: messages.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Other

Download the images using the URL below:

Leave a Response

(0 comments)