I\'m trying to get data from data.php via jQuery ajax call.
data.php
My code looks like this:
var jsonData; $.ajax({ url: \'data.php\',
Also you can use this mechanism:
$.getJSON( "data.php", function( response ) { jsonData = response; });
It is more clean if you want get only JSON :)