Error with Autocomplete

  • 1
  • Problem
  • Updated 4 years ago
Hi I receive an error when I want to use autocomplete API
here s my code in JS:
$.ajax({
type: 'GET',
url: 'http://autocomplete.wunderground.com/...',
dataType: 'jsonp',
contentType: 'application/json',
success: function (res) {
alert(res['RESULTS'][0]['name']);
}
});

And I get the error:
Uncaught SyntaxError: Unexpected token : http://autocomplete.wunderground.com/...

thanks
Photo of laurentk

laurentk

  • 3 Posts
  • 0 Reply Likes
  • sad

Posted 4 years ago

  • 1

Be the first to post a reply!