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
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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.