Display custom message in the combo box (I am using dhtmlcom

I am using the dhtmlcombo with autopopulate it is working fine ,But I have one question I need to dispaly no records found if the user types the text which is not there in the option list.





I spent 4hrs on this but I did get solution .



Laxmn



Techically you can just return custom option as

if (!mysql_num_rows($res))
print (“No records found”);

It will be shown in option list instead of normal options.


More complex solution can be build by redefining the _fillFromXML method of combo, which triggered each time when xml loaded.