Does anybody have any idea why the autocompile not working?
Here my js code:
It didnt show anything, but the list is not empty.
Here my js code:
var
list = [];
$.post(
'get_all_teaor'
,
function
(data){
$.each($.parseJSON(data),
function
() {
list.push(
"("
+ String(
this
.id) +
") "
+ String(
this
.teaor_name) +
"|"
);
});
});
$(
"#business_branch"
).focus(
function
() {
$(
".foo"
).html(list);
console.log(
typeof
(list));
console.log(list.length);
$(
'#business_branch'
).kendoAutoComplete({
dataSource: list,
placeholder:
"Kérem várjon ..."
});
});
It didnt show anything, but the list is not empty.