greenspacechunk
07-12-2007, 06:36 PM
I have the following text box and button:
<input type="text" name="ContainerCode" maxlength="50"/>
<input type="button" name="Container_additem" value="..." onclick="Popup('ContainerCode');"/>
And the following checkbox and function:
<input name="independentBox" type="checkbox" onclick=check_independent_status() value="0"/>
function check_independent_status() {
if(document.BarCodeForm.independentBox.checked==1)
{document.BarCodeForm.Container_additem.disabled= true;
document.BarCodeForm.ContainerCode.disabled= true;}
else{
document.BarCodeForm.ContainerCode.disabled= false;
document.BarCodeForm.Container_additem.disabled= false;}
}
When I click the checkbox, I want both the text box and button to be disabled. However, only the button is getting disabled in IE with no errors thrown. In Firefox, it works perfectly! What am I missing here???
<input type="text" name="ContainerCode" maxlength="50"/>
<input type="button" name="Container_additem" value="..." onclick="Popup('ContainerCode');"/>
And the following checkbox and function:
<input name="independentBox" type="checkbox" onclick=check_independent_status() value="0"/>
function check_independent_status() {
if(document.BarCodeForm.independentBox.checked==1)
{document.BarCodeForm.Container_additem.disabled= true;
document.BarCodeForm.ContainerCode.disabled= true;}
else{
document.BarCodeForm.ContainerCode.disabled= false;
document.BarCodeForm.Container_additem.disabled= false;}
}
When I click the checkbox, I want both the text box and button to be disabled. However, only the button is getting disabled in IE with no errors thrown. In Firefox, it works perfectly! What am I missing here???