app/assets/javascripts/refinery/subregion-select.js.coffee.erb
$ ->
$('select#retailer_country_code').change (event) ->
select_wrapper = $('#retailer_state_code_wrapper')
$('select', select_wrapper).attr('disabled', true)
country_code = $(this).val()
url = "/<%= Refinery::Core.backend_route %>/retailers/subregion_options?parent_region=#{country_code}"
select_wrapper.load(url)