x
 
1
<!doctype html>
2
<title>Example</title>
3
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
4
<script>
5
  $( function() {
6
    $( "button" ).click( function() {
7
      $( "#data" ).load( "/jquery/tutorial/latestData.html", function() {
8
        $( "#status" ).html( "<h1 style='color:tomato'>Done!</h1>" );
9
      });      
10
    });
11
  });
12
</script>
13
14
<button>Load Latest Data</button>
15
16
<div id="data"></div>
17
<div id="status"></div>