Thanks a lot.
It puts me on the way.
1- To handle insensitive casse, just override default filter like that (adding toUpperCase() or toLowerCase() and "== 0") :
Code:
$.fn.combobox.defaults.filter = function(q,row){
var opts = $(this).combobox('options');
return row[opts.textField].toUpperCase().indexOf(q.toUpperCase()) == 0;
};
2- To search inside the string like i wanted, just put ">= 0" like stworthy suggested
Code:
$.fn.combobox.defaults.filter = function(q,row){
var opts = $(this).combobox('options');
return row[opts.textField].toUpperCase().indexOf(q.toUpperCase()) >= 0;
};
For newbies like me, place these code outside of the jQuery $(document).ready scope, otherwise it don't works.
Thanks again, it works perfectly
Regards.