Let’s say that I have in my test.php:
echo 'Hello, world'
And I want to place that text in a div.
This doesn’t work for me and the alert also does not pop out.
$.ajax({
type: "GET",
url: "test.php",
data : data,
success: function(msg){
alert('Does it Work?');
("#div_1").html(message);
});
1 Answer