Skip to content

Instantly share code, notes, and snippets.

@buoyant
Created December 3, 2012 17:16
Show Gist options
  • Save buoyant/4196461 to your computer and use it in GitHub Desktop.
Save buoyant/4196461 to your computer and use it in GitHub Desktop.
$('#regform_district_id').empty();
<% for district in @districts %>
$('#regform_district_id').append($("<option></option>").attr("value",<%= district.id %>).text('<%= district.name %>'));
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment