Dear Friends,
The following code is working fine in Mozilla firefox, opera. But not working in IE6 and safari.. Pls help me guys
THANKS IN ADVANCE>>>>>>>>>>>>>>
Show hide Javascript not working in IE 6 , Safari
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Raj BandiRank #1,603 · 981 reputationPosted Apr 28, 2013, 7:00 PM EDT
Option click will not work in IE6, IE7, Chrome, Safari. The best approach is to bind onchange event to select element and interpret selected value. This will work in all the major browsers
the function OnChanged looks like below
function OnChanged(obj)
{
var selectedValue = obj.options[obj.selectedIndex].value;
switch(selectedValue)
{
case 'a':
document.getElementById('LWE_show').style.display='';
document.getElementById('hidden').style.display='none';
break;
case 'b':
document.getElementById('hidden').style.display='';
document.getElementById('LWE_show').style.display='none';
break;
}
}
Cheers,
Raj