...

View Full Version : javascript form field validation change color back when



johnwboyd
01-27-2009, 08:46 AM
I need to get the invalid fields to change back to blue when they're validated upon submit or even clicking out of the field.
I'm not good in writing javascript yet so please include all of the javascript and html with the edits highlighted in the code:

The page:
http://shoppingcartcash.com

The js:
http://shoppingcartcash.com/form.js

Thanks!

rangana
01-27-2009, 11:12 AM
Try to add highlighted:


function CheckTheForm() {
var result = true;
var msg="";

for(var i=0;i<=12;i++)
document.getElementById('FieldData'+i).style.color='#000066';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum