Hello,
I have a dhtmlxCombo with the values 00-59 (seconds).
I populate it like this:
var cboMin = new dhtmlXCombo("txtmin", "alfa", 50);
for (i=0;i<=59;i++){
tmp=i;
if (tmp<10){
tmp="0"+tmp;
}
cboMin.addOption([[i,tmp]]);
}
I want people to be able to type values from 00-59, but not letters and not numeric values higher than 59.
I already tried the readonly option, but then they can’t type anything.
cbomin.readonly(true);
With filteringmode and autocomplete I can enter values that not are in the combobox (00-59), so that’s NOT what I want. Is there a way to do this?
cboMin.enableFilteringMode(true);
cboMin.enableAutocomplete(true);
Maybe empty the combobox if they enter a value that’s not in the combobox?