works on mozzila, doesnt work on IE
Posted: Sat Dec 16, 2006 2:15 pm
Hi there...Have a simple question, but dont really know how simple the answer is
My site works perfectly on Mozzila and has a problem with IE no matter the version.
I have a text box that is disabled in the beggining. In Mozzila when the page loads that textbox is grey.
<input type="text" name="textbox1" size="20" disabled = false>
When a particular radio button is pressed a Javascript function is called and it becomes enabled.
<a href = "javascript:enableRentPrice()"><input type="radio" value="V1" checked name="R1"></a>
The function
function enableTextBox(){
document.forms['form1'].elements['textbox1'].disabled = false;
}
When opening the page with Internet Explorer
A) The text box is not grey
B) The text box doesnt get clicked and doesnt get any text
C) The function doesnt change anything
Might be smth trivial...Any ideas plz?
My site works perfectly on Mozzila and has a problem with IE no matter the version.
I have a text box that is disabled in the beggining. In Mozzila when the page loads that textbox is grey.
<input type="text" name="textbox1" size="20" disabled = false>
When a particular radio button is pressed a Javascript function is called and it becomes enabled.
<a href = "javascript:enableRentPrice()"><input type="radio" value="V1" checked name="R1"></a>
The function
function enableTextBox(){
document.forms['form1'].elements['textbox1'].disabled = false;
}
When opening the page with Internet Explorer
A) The text box is not grey
B) The text box doesnt get clicked and doesnt get any text
C) The function doesnt change anything
Might be smth trivial...Any ideas plz?