Code has been added to clipboard!

Use of jQuery .get() with a Callback Function

Example
$.get( "entries.php", function( data ) {
  $( ".load-data" )
    .append( "ID: " + data.id ) // ID of the entry
    .append( "Name: " + data.name ) // name of the entry
}, "json" );