Please format your code by adding ``` on the line before and after it
Feb 9, 2023
1
Level 1
AUTOCOMPLETE.JS
$(function(){ $('input[name="title"]').keyup(function(e) { var keyword = $(this).val(); console.log("don gopi"); }) $.ajax({ url: "{{url('/searchdata')}}", method: "post", datatype: 'json', data: { // 'searchkeyword': keyword, _token: CSRF_TOKEN, }, success: function(data) { pagestitle = data; // console.log(pagestitle); $('#searchBox').autocomplete({ lookup: pagestitle, onSelect: function (suggestion) { selectecval = suggestion.data selectedtitle = suggestion.value } }); } }); });iam geeting data from backend but in frontend dropdown is not coming
Please or to participate in this conversation.