Enable and Disable property of an asp:imagebutton with js
Hello,
I'm working with ASP.NET 1.1. In my page I have a asp:checkbox.
Therefore a have this code in wich I want to enable and disable an
asp:imagebutton.
It works fine for me when I want to disable the button, but when I deselect
the check the button is not enabled again.
Did I do something wrong?
function ApplyCortesy()
{
var ObjCheck = document.getElementById('chkTBFCOR');
if (!ObjCheck.checked)
{
document.getElementById('btnGeneraMontos').disabled = 'false';
}
else
{
document.getElementById('btnGeneraMontos').disabled = 'true';
}
}
Thanks
Date:Sat, 14 Jul 2007 10:58:21 -0600
Author:
|