x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
5
<script>
6
  $( function() {
7
    $( "button" ).click( function() {
8
      $( "#data" ).load( "https://web.QHMit.com/jquery/examples/latestData.html", function() {
9
        alert( "We got the data!" );
10
      });      
11
    });
12
  });
13
</script>
14
15
<button>Load Latest Data</button>
16
17
<div id="data"></div>
18
<div id="status"></div>