combo reset

This works fine to reset a combo but not when using checkboxes… the checkbox still does not disappear:

.setComboValue("");

.unSelectOption();




You can try to use the following approach to hide checkbox:


combo.setComboValue("")
combo.DOMelem_checkbox.style.visibility = ‘hidden’;



Ok that works but we get this error:
this._selOption is null
team.phpmydirectory.com/dev/demo … lxcombo.js
Line 56

We are using setComboValue("") on the onChange event.

Ok got it to work but when selecting options the checkbox still flashes up and then hides again everytime.



If you want to clear combo input each time the value is selected you can try to use the following approach:


combo.attachEvent(“onChange”,clearInput)
combo.attachEvent(“onSelectionChange”,clearInput)

function clearInput(){
window.setTimeout(function(){
combo.setComboValue("");
combo.DOMelem_checkbox.style.visibility = ‘hidden’;
},1)
}