Comboboxselect when keypress the list of options should show

If i’m using this code the comboboxselect is all screwed up. :cry:

Hans Karel Peter Wilma Conny Lennard Joop
var combo = dhtmlXComboFromSelect('combo_zone1');
		combo.attachEvent("onKeyPressed",onKeyPressedFunc);

		
		function onKeyPressedFunc(key){

		combo.openSelect(); 

		return true;

				}
           </script>

Please help. Thanks in advance. :slight_smile:

It’s ok i fixed it now. :smiley:

Somehow i used the event code wrong.

This is how it should be.

        combo.attachEvent("onKeyPressed", function(keyCode){
				var combo = dhtmlXComboFromSelect('combo_zone1');

		combo.openSelect(); 

		return true;
		
		});

Ofcourse without the var combo = dhtmlXComboFromSelect(‘combo_zone1’); code line :open_mouth: