Hello,
Could anyone help me and explain why my ajax returns error ?
Hello,
Could anyone help me and explain why my ajax returns error ?
Change:
url:"https://en.wikipedia.org/wiki/w/api.php?action=opensearch&&search="+searchTerm+"&format=json&callback=?"
to:
url:"https://en.wikipedia.org/w/api.php?action=opensearch&&search="+searchTerm+"&format=json&callback=?"
Also you have double &&
, which I suppose could do with only one &
thanks man ! your’re the best