Jump to content

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


pioneerx01

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

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.