it seems CJuiAutocomplete haven’t methodChain properties although CAutocomplete have this. so we cannot have a autocomplete like this
$("#findUserIdDisplay").autocomplete({
source: "ui_autocomplete_users_withuname.php",
minLength: 2,
select: function(event, ui) {
$('#findUserId').val(ui.item.id);
return false;
}
})//the below part should be created by methodChain
.data("autocomplete")._renderItem = function( ul, item ) {
return $( "<li></li>" )
.data( "item.autocomplete", item )
.append( "<a>"+ item.label + "</a>" )
.appendTo( ul );
};
and you can read this post with same issue.
i think it is a good option to add to CJuiAutocomplete.