Hi @Ahmed Abd El Aziz,
I don't quite understand why you want to do this because when you enter the full employee ID(1234590 ), the autocomplete feature only shows one.
If you insist on using it, you can judge it in the change event.
success: function (data) {
console.log("search text" + data)
if (data != "") {
$("#LineManagerName").val(data);
}
else {
Test();
}
}
Then put $("#txtLineManagerId").autocomplete into the test() method,and clear the previous LineManagerName content,
function Test() {
$("#LineManagerName").val("");
$("#txtLineManagerId").autocomplete({
//......
});
}
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.