My code:
JAVASCRIPT PART:
Code:
function test() {
$.ajax({
url: '../ajax/test.php',
}).done(function(data) {
return data;
});
}
alert(test());
PHP PART:
Code:
<?php
echo "Hello, world!";
?>
What I'm doing wrong ? :/
PS: Im loaing jQuery mini 1.8 from jquery website.