I am working on Jquery UI autocomplete to pull data and piopulate based on text I type.
- Data is getting populated on typing text in textbox
- Issue was data is not filtered based on what I typed.
What would be the issue in below code
<input type=text id="tbxPG">
<script type="text/javascript">
$(document).ready(function (){
$("#tbxPG").autocomplete({
source: function (request, response) {
$.ajax({
dataType: "json",
data: { term: request.term, },
type: 'Get',
contentType: 'application/json; charset=utf-8',
xhrFields: { withCredentials: true },
crossDomain: true,
cache: true,
url: 'myURL',
success: function (data) {
response($.map(data.value, function (item) { return { label: item.Name, value: item.Name } })); }, error: function (data) {
}
});
},
minLength: 3,
open: function () {
},
close: function () {
},
focus: function (event, ui) {
},
select: function (event, ui) {
}
});
});
</script>