hello!
I have this script:
var source = {
datatype: “json”,
type: ‘POST’,
datafields: [
{ name: ‘IDCONCEPTO’, type: ‘int’ },
{ name: ‘NOMBRE’, type: ‘string’ },
{ name: ‘CPN’, type: ‘string’ }
],
url: url,
async: false,
formatData: function () {
return { t:valor,mod: data}
}
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#cboConcepto”).jqxComboBox({ source: dataAdapter, displayMember: “NOMBRE”, valueMember: “IDCONCEPTO”, selectedIndex: 0});
** I need the value of field “CPN” when the jqxComboBox start with propertie selectedIndex: 0
I have the value “CPN” only on event ‘select’
$(“#cboMotivo”).on(‘select’, function (event) {});
thanks for your help!