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>>>>>>>>>>>>>>
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raj BandiPosted Apr 28, 2013, 11:00 PM
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