I have a website and I need to put a language selector on it, when the user selects the flag corresponding to the desired language to be redirected to a specific url.
<select>
<option>Brazil</option>
<option>English</option>
<option>spanish</option>
</select>
In case of example code above instead of names I want the flag inside, I already tried to insert the image directly but it does not appear, and after selected is redirected to a URL mentioned, I know it's with javascript that fazz this , just do not know how, can anyone help?