Hi guys,
The JSON function below is not returning anything...
$.getJSON(formUrl, function(data) {
alert(data)
$('.response').html('<p>' + data.title + '</p>'
+ '<p>' + data.description + '</p>');
});
the formUrl is correct and returning data in the form of
{"title":"Smashing Magazine","description":"Smashing Magazine is focused on design and web-development. We deliver useful information, latest trends and techniques, useful ideas, innovative approaches and tools."}
Can someone point out what I'm doing wrong? I'm alerting the data and its empty as well...
Thanks!