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(){

    var sku = $('#skuTextBox').val();
               ?$filter=startswith(SKU,'" + sku + "')

               function ClearDivsAndMerge(data, status) {

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