Menu
I have the following
function Fchanger() {
if(document.forms[0].state1.value.length > 0)
document.forms[0].state1.style.borderColor=’#000000′;
if(document.forms[0].state1.value.length > 0)
document.forms[0].state1.style.borderWidth=’1px’;
if(document.forms[0].state1.value.length > 0)
document.forms[0].state1.style.borderStyle=’solid’;
}
I’d rather not write this out for all 50 states (6 lines x 50 states =300 lines !). Is there a way I can “loop” this to cover all the states and keep the code manageable?
Thanks,
Ron