A possible solution to solve this issue is to add a validate type to this combobox. When inputed value is invalid, the prompt message will display.
$.extend($.fn.validatebox.defaults.rules,{
inList:{
validator:function(value,param){
var c = $(param[0]);
var opts = c.combobox('options');
var data = c.combobox('getData');
var exists = false;
for(var i=0; i<data.length; i++){
if (value == data[i][opts.textField]){
exists = true;
break;
}
}
return exists;
},
message:'invalid value.'
}
})
Apply this 'inList' validation type to a combobox component.
$('#cc').combobox({
validType:'inList["#cc"]'
});