Jump to content

Disabled form fields and java work in FF not in IE. WHY?


Recommended Posts

I am working on a submission form. I have it all coded as I want to. however I am having trouble with "disable" options in IE, but not in FF. See for yourself: http://azsef.asu.edu/register/project.shtml

 

When I click on elementary the field "un-disables" right away in FF, but not in IE. I have to click on elementary and then somewhere else so the fields "un-disabled".

 

It created some problems with registration. Is there a way around this without any major recoding?

 

Thanks

Well, the problem is that you have multiple statements on one line and are separating them with commas. You should be using semi-colons:

 

This

if(val=="Elementary"){frm.elementary.disabled=false,frm.junior.disabled=true,frm.senior.disabled=true}

 

Should be

if(val=="Elementary"){frm.elementary.disabled=false;frm.junior.disabled=true;frm.senior.disabled=true}

I tried that but it did not do anything to the IE problem. Do you have any other ideas why?

 

BUT... I found out what is the problem...

 

Instead of having

onChange="Disab(this.value)"

I put

onClick="Disab(this.value)"

 

Thanks for the effort anyways

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.