pioneerx01 Posted December 22, 2009 Share Posted December 22, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/185979-disabled-form-fields-and-java-work-in-ff-not-in-ie-why/ Share on other sites More sharing options...
Psycho Posted December 23, 2009 Share Posted December 23, 2009 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} Quote Link to comment https://forums.phpfreaks.com/topic/185979-disabled-form-fields-and-java-work-in-ff-not-in-ie-why/#findComment-983189 Share on other sites More sharing options...
pioneerx01 Posted December 24, 2009 Author Share Posted December 24, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/185979-disabled-form-fields-and-java-work-in-ff-not-in-ie-why/#findComment-983408 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.