Please set the 'value' property for combobox to set the initialized value.
Also, you can set the data item with 'selected' property set to true for the returned json array from 'register.php?action=load'. The data may looks like this:
Hi,Code:
<input type="text" id="locCode" name="loc" class="form-control easyui-combobox" value="..." ...>
Code:
[{
"id":1,
"text":"Java"
},{
"id":2,
"text":"C#"
},{
"id":3,
"text":"Ruby",
"selected":true
}]
Sorry about reviving this old topic. But I am stuck again at a similar problem.
You have suggested to set the value or set selected property to 'true' in json array. But if this is not an edit form, I simply need to load the data in the combobox with no pre-defined initialized value. Now if user selects a value from the combobox for inserting in DB for first time, on submit I am executing $.parser.parse(ff); but it is un-setting the user selected value from combobox. Please advise on how this can be resolved. Thanks in advance.

