Ok, where to begin…I have a form where an Insured individual fills out required info…a couple of the fields invoke a javascript routine (highlight) that gives a pale yellow background to the textbox, alerting the applicant to their current position (in those fields where position need not be indicated, a 2nd javascript routine is invoked, highlight2, which sets the textbox background to white)…so far so good…I’ve included a checkbox that invokes a javascript routine which fills in the info fields if the insured is also the owner…also so far so good…what I’m trying to do, is in the case where the checkbox is unchecked (meaning the owner is not also the insured, I’d like selected textboxes to highlight the pale yellow…I thought the following would work:
function SetFKolor() {
if (document.forms[0].copy.checked == true)
onFocus=”highlight(event)”;
}
else {
onFocus=”highlight2(event)”;
}
}
</script>
onClick=”SetFKolor(event)”
No luck…Javascript Help please!
Thanks,
Ron