combo_init.attachEvent ( 'onChange', function(value){
combo_lie.clearAll();
combo_lie.setComboValue(null);
combo_lie.setComboText("");
if (value != null) {
combo_lie.load("/saisie/saisie/combo_libelle_dpdr.php?codeDPDR="+value);
}
});
Who to force the value of combo_lie to his first option (to see it) ?
combo_lie.addOption([
["aaaa","option A"],
["bbbb","option B", "color:red;"],
["cccc","option C"]]);
getOptionsCount() = 3; but I don’t see the options in the combo.
combo_init.attachEvent ( 'onChange', function(value){
combo_lie.clearAll();
combo_lie.setComboValue(null);
combo_lie.setComboText("");
if (value != null) {
combo_lie.load("/saisie/saisie/combo_libelle_dpdr.php?codeDPDR="+value, function(){
combo_lie.selectOption(0); // <-- select first option in list if any
});
}
});