About inconsistent Onchange Behaviour with IE
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ketan_shah
Posted On:   Friday, June 9, 2006 06:48 AM

New Document function refreshType1Options() { var Type1Selected = form1.Type1; //var isType1Selected = false; var i =-1; if(Type1Selected) { if(Type1Selected[0].checked == true) //if Option1 option is selected { document.form1.AppTypeOption1.disabled = false; document.form1.AppTypeOption2.disabled = true; document.form1.Type2[0].disabled = true; document.form1.Type2[0].checked = true; document.form1.Type2[1].disabled = true; document.form1.ParamsUsingOption1.disabled = true; document.form1.T1.disabled = true; //disable Input param Text box } else if (Type1Selected[1].checked == true) //if Option1 Option is selected { document.form1.AppTypeOption1.disabled = true; document.form1.AppTypeOption2.di   More>>
New Document

I have an HTML page with following options



* Option 1

* Option 2

* sub option 2.1

* sub option 2.2



What I require is,



Case 1 : Option 1 selected
--------------------------------



Disable following,



Combo2



sub option 2.1

combo2.1



sub option 2.2

combo 2.2


Case 2 : Option 2 selected
--------------------------------


Enable following,

combo2

sub option 2.1

combo2.1



Disable following,


Combo1

sub option 2.1

combo2.1



sub option 2.2

combo 2.2



The following is the code which I have which works with Mozilla but not with IE. Any idea what I may be doing wrong here?
			









































Option1
 


Option2
 
 

Sub Option 2.1
 

Sub Option 2.2










   <<Less

Re: About inconsistent Onchange Behaviour with IE

Posted By:   Anonymous  
Posted On:   Friday, June 9, 2006 10:43 AM

Onchange event in IE has its limitations on radio buttons and checkboxes, It fires the event onBlur of the radio button , so try using onclick event which works both in mozilla and IE.
About | Sitemap | Contact