blazeworx / flagstrap

A lightwieght jQuery plugin for creating Bootstrap 3 compatible country select boxes with flags
http://blazeworx.github.io/flagstrap
MIT License
88 stars 62 forks source link

Reinit country-array for another language #24

Open cosmopolit opened 7 years ago

cosmopolit commented 7 years ago

I need to reinit Flagstrap when switch to another UI language.

How can i redraw the component with a new country-array?

slawa-dev commented 7 years ago

I would just reset the whole div with https://api.jquery.com/replacewith/ and reinit the usual way.