Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by vel on Nov 14, 2007 01:16
open dhtmlx forum
DHTML Combo

Hi,

How to preselect a result in dhtml combo auto complete mode.

For example.

'A' is typed in the dhtml combo

It will return

A1
A2
A3
A4

from the server.

i want to preselect A4 in the dhtml combo on loading
Answer posted on Nov 14, 2007 01:40
By default combo box select option from the list which has seelcted attribute

...
<option>Some1</option>
<option selected="true">Some2</option>
<option>Some3</option>
...


while such approach will work with any combo mode, it was not originally purposed for autocomplete mode.