I wanna open and hide option in combo

// Combo box Option
myCombo.addOption
( “ch”,
{Maincomp: “Choice!!”, subcomp: “”}
,null ,null ,true );
myCombo.addOption (“GRIT”,{Maincomp: “GRIT”, subcomp: “”},null,null,false );
myCombo.addOption (“SSGInC”,{Maincomp: “SSGInC”, subcomp: “”},null,null,false );
myCombo.addOption (“Hyundai”,{Maincomp: “Hyundai”, subcomp: “”},null,null,false );

something function called, auto open Combobox and hide option choice,

so i coding below

myCombo.attachEvent(“onOpen”, function fn_filter()
{
if (myCombo.opt.value != “ch”) {return true;}
else{ return false;}
});

function fn_filter()
{
if(myCombo.opt.value != “ch”){return true;}
else{return false;}
};

but, this not working…

what`s the problem…?

Hello
Please, check this topic:
viewtopic.php?f=4&t=50174