Retrieving Data with Ajax and Rest

This implementation uses a technique known as Unobtrusive JavaScript, which aims to separate markup from script. HTML controls are wired to JavaScript event handlers when the JavaScript file loads. The following function, which is taken from the RestScripts.js file.
$(function AssociateButtonClickWithJSONCall() {

  $('#Button1').click(function OnButtonClick(){

    $('#ContentDiv').html("");
    $('#divSupplierResults').html("");
    var sku = $('#skuTextBox').val();
    $.getJSON("/sites/sharepointlist/_vti_bin/listdata.svc/Parts()
               ?$filter=startswith(SKU,'" + sku + "')
               &$select=Title,SKU,Id,Description",
               {},

               function ClearDivsAndMerge(data, status) {

                 var parts = data.d.results;
                 mergePartsWithInventoryLocations(sku, parts);

               }
             );
  });
});