Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by prasad joshi on Apr 08, 2009 01:35
open dhtmlx forum
DHTMLX COmbo

Hello sir,

i am using dhtml combo and PHP as server side scripting, i have use the combo.getAcualValue but the problem is that my combos having parent child relationship. when i submit the form how can i store those values back in the same combos. In simple combo ihave used <option value=<?php echo $_POST['Combo']?> for selction of previous value. how can i solved this with DHTMLX Combo

Answer posted by Alex (support) on Apr 08, 2009 05:40

Hello, 

There is selected attribute which can be used in the xml to preselect option - in this case onChange event will be called:

<option value="some value" selected="1">some text</option>

Also you can use setComboValue(value) method to select the necessary option. To call onChange event in this case you can use:

combo._confirmSelection()

after that.