Hello, I'm in the process of implementing form field validation. In the past, I've done this with VBScript and would now like to migrate to JavaScript. Posted below is the syntax that I'm trying to use to alter the appearance of the fields on the form. Can anyone help me out as to why it fails in JavaScript? The problem (I assume) lays with how I'm trying to reference the field properties. I'm confused through because it seems to work fine with VBScript. (Unless of course MS decided to go off on their own - again.)
function btnSubmit_onClick()
{
document.frmInformationRequest.userName.value = "Test"
document.frmInformationRequest.userName.style.color = #FFFFFF
document.frmInformationRequest.userName.style.backgroundcolor = #FF0000
}
function btnSubmit_onClick()
{
document.frmInformationRequest.userName.value = "Test"
document.frmInformationRequest.userName.style.color = #FFFFFF
document.frmInformationRequest.userName.style.backgroundcolor = #FF0000
}