Ajax not working

I can connect to the server but i can not make the code work…can smn let me know what is it wrong?

<!doctype html>

<title> Learning Javascript </title>

<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<script type="text/javascript" src="jquery.min.js" > </script>
<h1> Asyncronous Javascript and XML </h1>

<script>
     
    $.ajax({
        
        url: "test.dat"
        
    }).done( function(data) {
        
        $("h1").html(data); 
        
    });
        
</script>

https://rupeta.000webhostapp.com/index.html …i simply have 2 files on the server: index.html and test.html.

test.html contains only a phrase.

index.html has the AJAX Code…I just want to make a simply test, not much is happening. Only take the phrase from test.html and put it in the index.html, by changing the text from h1 tag. Can smn let me know what is wrong?

Tried both alternatives, with get JQuey Function and ajax Function and still no output.

PS: In one thread, i saw that smn suggested giving the extension .dat instead of .txt, but is still not working. And in my case is .html, but still no good.

Hi @rupeta!

The jQuery library does not load… The URL is incorrect.

Make sure you have included/uploaded it correctly.