"; $('#zip_code_container').append(label); var prepopped_zip_value = ""+zip_code+""; var change_location_link = "Change Location"; $('#zip_code_container').append(prepopped_zip_value); $('#zip_code_container').append(change_location_link); } function onChangeLocation() { $('#zip_code_container').html(zip_code_container_original_html); zip_code = null; $('#add_to_cart_button').addClass('disabled'); setHeight('#price-block-slide-panels'); } function onAddAccessoryAfter(accessory_key, item_key) { AddToCartManager.addAccessoryToCartEntryAfter(item_key, accessory_key, createAfterAddAccessoryAfter(accessory_key)); } function createAfterAddAccessoryAfter(accessory_key) { return function() { $('#add_button_'+accessory_key).html("Added!"); $('#add_button_'+accessory_key).removeAttr("href"); $('#add_button_'+accessory_key).addClass("disabled"); } }