clonefish logo

select options, generated dropdown options combobox control dynamic database sql select multiple="multiple" checked check multiple options using ctrl control

selectDynamic

A single or multiple select with values coming from a database. This control also handles tree-like structures (like a multi-level category structure for an online shop).

You can also use a database query to pre-select values for a multiple select like in this example:

For such a select you would create an SQL query that fetches all the possible values from a database (these are 'WAV', 'MP3', 'AVI', 'MPEG'), and another SQL query that specifies which options are to be selected ('WAV' and 'AVI').