Closed variousred closed 8 years ago
For people who are NOT using chosen:
I could not get this to work unless i modified these sections
function addChosenToState(){ if (chosenIsRequired && stateIsNotText()) { $('#' + state_id).chosen(); } }
to this
function addChosenToState(){ if (chosenIsRequired() && stateIsNotText()) { $('#' + state_id).chosen(); } }
(the chosenIsRequired as a function call) in https://github.com/arvindvyas/Country-State-Select/blob/master/vendor/assets/javascript/country_state_select.js.erb
chosenIsRequired
@variousred thinks I am looking into it .
Thanks @arvindvyas
For people who are NOT using chosen:
I could not get this to work unless i modified these sections
to this
(the
chosenIsRequired
as a function call) in https://github.com/arvindvyas/Country-State-Select/blob/master/vendor/assets/javascript/country_state_select.js.erb