I am having trouble with some javascript in my ASP page...
As per many posts in this forum, I have found very useful tips on how to disable a form field with the syntax:
But I ran a test and I can't seem to get this working for a listbox.
here's the code:
The resulting alert box returns "undfined" as the value... is there something I'm doing wrong?
Earnie Eng
As per many posts in this forum, I have found very useful tips on how to disable a form field with the syntax:
Code:
document.formname.field.disabled=true;
But I ran a test and I can't seem to get this working for a listbox.
here's the code:
Code:
function EnableDisableTenderType(frmObject)
{
[gray]//document.intTenderTypeID.disabled = !frmObject.checked;[/gray]
alert(document.frmContactDetail.intTenderTypeID.disabled);
}
.
.
.[gray]in the onClick procedure of a checkbox I have:[/gray]
onClick="EnableDisableTenderType(this);"
The resulting alert box returns "undfined" as the value... is there something I'm doing wrong?
Earnie Eng