Jump to content

Script wont work in IE


zed420

Recommended Posts

Hi All

 

I wonder if someone can help me I have a strange problem, this JavaScript below works wonders in Firefox but in IE  I'm able to hide dateDay,dateMO and DateYr BUT NOT timeHr and timeMin why why and why ???? All these are from the same form, all are dropdown boxes.

 

<script language="javascript">

function enableField()

{

document.ebooking.dateDay.disabled=false;

document.ebooking.dateMO.disabled=false;

document.ebooking.dateYr.disabled=false;

document.ebooking.timeHr.disabled=false;

document.ebooking.timeMin.disabled=false;

}

function disableField()

{

document.ebooking.dateDay.disabled=true;

document.ebooking.dateMO.disabled=true;

document.ebooking.dateYr.disabled=true;

document.ebooking.timeHr.disabled=true;

document.ebooking.timeMin.disabled=true;

}

</script>

 

thanks in advance

 

Zed

Link to comment
https://forums.phpfreaks.com/topic/126594-script-wont-work-in-ie/
Share on other sites

Hi

Thanks for looking into my post, it doesn't give out any errors at all. The last two dropdown box don't seem to work in IE.  These are my controls;

 

<table width="60%" border="0" cellspacing="3" cellpadding="3">

  <tr>

    <td>

      <input type="radio" name="radio" id="asap" value="asap" checked="checked" onclick="disableField()"/>

      </td>

    <td>As Soon As Possible</td></tr>

  <tr><td>

      <input type="radio" name="radio" id="st" value="st" onclick="enableField()" /></td>

    <td>Specific Time</td>

  </tr>

</table>

 

and this the form that doesn't work.

 

<table>

<tr><td>

   

 

Hr <select  name='timeHr'  disabled="true" >

    <option>00</option>

    <option>01</option>

...

  </select>

   

Min <select name="timeMin" disabled="disabled">

    <option>00</option>

    <option>30</option>

... 

  </select></td></tr></table>

 

Thanks once again

Zed

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.