Code has been added to clipboard!

Adding a jQuery AJAX Callback Function

Example
$.post("entries.php", function( data ) {
  $( ".load-data" )
    console.log( data.id ) // ID of the entry
    console.log( data.name ) // name of the entry
}, "json");