A
avanti
i have a following javascript function that gets called on a checkbox
click. The backcolor is not getting changed for the textbox. I am
seeing an error on page as well. I am using IE and C# with the asp
code.
function enableExterNameTextBox(obj)
{
var textbox = "";
textbox = document.getElementById('partnerExternalName');
if(obj.checked)
{
alert('checked');
textbox.disabled = true;
textbox.value = "";
textBox.style.backgroundColor = 'gray';
}
else
{
alert('unchecked');
textbox.disabled = false;
textBox.style.backgroundColor = 'white';
}
}
Any ideas?
Thanks,
Avanti
click. The backcolor is not getting changed for the textbox. I am
seeing an error on page as well. I am using IE and C# with the asp
code.
function enableExterNameTextBox(obj)
{
var textbox = "";
textbox = document.getElementById('partnerExternalName');
if(obj.checked)
{
alert('checked');
textbox.disabled = true;
textbox.value = "";
textBox.style.backgroundColor = 'gray';
}
else
{
alert('unchecked');
textbox.disabled = false;
textBox.style.backgroundColor = 'white';
}
}
Any ideas?
Thanks,
Avanti