Written in JavaScript/jQuery, this plugin will help you dynamically validate HTML fields.