dhtmlxCombo

I’m using “100000” sample example

with database in mysql-- RandomWords



and function getDataFromDB($mask)



How can i set selected option in dhtmlxcombo (Ex. item_id=2 )





Thanks!


In case of autocomplete (dynamic loading) you can select the option only on client (using combo API). And moreover option can be selected by the text:


combo.setComboValue(option_text);


I resolved my problem doing this in main page:



 



where variables $aaa (item_id), $bbb (item_nm) is from php-mysql select… is simple :slight_smile: