Skip to content

Instantly share code, notes, and snippets.

@adamdilek
Created February 4, 2014 09:44
Show Gist options
  • Save adamdilek/8800749 to your computer and use it in GitHub Desktop.
Save adamdilek/8800749 to your computer and use it in GitHub Desktop.
$.getJSON "/locations/districts?city_id=" + city_id + "&callback=?", (data) ->
$.each data, (i, item) ->
$(".register_temp_invoice_info_delivery_district_id").append "<option value=" + item.id + ">" + item.name + "</option>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment