arvindvyas / Country-State-Select

It will fetch the countries and according to that fetch the state of that countries, currently it is for countries listing
MIT License
69 stars 78 forks source link

Not able to select state according to selected country #18

Closed dinshawraje closed 9 years ago

dinshawraje commented 9 years ago

Hi I am using gem and I had done

<%= f.select :country, CountryStateSelect::Constant::COUNTRIES, {}, id: 'country_id' %> so it shows me all the country list. Now I want when I select country then in other drop-down it will show list of all states. When i write this then also nothing happens. It does not populate states. <%= f.text_field :state_name ,:id=> 'state_name'%>

arvindvyas commented 9 years ago

@dinshawraje have you added //= require country_state_select in application.js file