I populate a jxqdropdownlist using a dataAdapter source:
$(document).ready(function() {
var source =
{
datatype: “json”,
datafields: [
{ name: ‘ID’},
{ name: ‘SESSION_NAME’},
{ name: ‘SESSION_START’},
{ name: ‘SESSION_STOP’}
],
url: ‘data/query.php’,
async: false
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#session”).jqxDropDownList({ source: dataAdapter, selectedIndex: 0, height: ’25px’, theme: ‘Salud’, displayMember:’SESSION_NAME’, valueMember:’SESSION_NAME’ });
});
The query PHP return correctly the json value (here what it is return):
[{“ID”:”23″,”SESSION_NAME”:”Automne-2013 “,”SESSION_START”:”2013-08-26″,”SESSION_STOP”:”2013-12-06″}]
When i try to get the value of my dropdown list i have space after my value result.
I use Google Chrome debugger to inspect element and i see that the input that is create got unwanted space on value:
Any idea bout this behaviour ?