// Awsome non-obtrusive script that highlights all text input fields in a page based on a CSS class. // Script found at http://kalsey.com/2006/07/highlighting_form_fields_with_unobtrusive_javascript/ /****** REQUIRES: class_manipulation.js (can be found at http://snippets.dzone.com/posts/show/2630) This was added to work with jQuery validation scripts. This change by Keith Wolf - keith@wolfster.net ******/ function initHighlightInput() { if (!document.getElementsByTagName){ return; } var allfields = document.getElementsByTagName("input"); // loop through all input tags and add events for (var i=0; i