jqxcombobox doesn`t select item. What is the problem here
[ {“p_level”:1,”p_name”:”11″,”p_id”:1}, {“p_level”:2,”p_name”:”22″,”p_id”:2}, {“p_level”:3,”p_name”:”33″,”p_id”:3}, {“p_level”:4,”p_name”:”44″,”p_id”:4}, {“p_level”:5,”p_name”:”55″,”p_id”:5} ]
var url = “PriorityController.jsp”;
var source =
{
datatype: “json”,
datafields: [
{name: ‘p_id’},
{name: ‘p_level’},
{name: ‘p_name’}
],
url: url,
async: false
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#req_prio2”).jqxComboBox({source: dataAdapter, displayMember: “p_name”, valueMember: “p_id”, theme: ‘bootstrap’, width: 200});
$(“#req_prio2”).jqxComboBox(‘selectItem’, ’33’ );