views:

142

answers:

3

I need an already implemented solution for a JQuery or JavaScript drop-down language selector. The drop-down should open when the user clicks on it and it should display a list of languages with the country's flag on the left.

I cannot even find an example.

A: 

Won't any jQuery dropdown plugin work just fine? What you're looking for has nothing to do with languages and everything to do with a dropdown. There are tons of these just a google away.

thenduks
A: 

Just implement a regular <select> box with a .change() handler on the combo box.

Are you trying to translate your website on the fly without reloading?

If yes, then Google has it's very own translation widget that you include in your site, it gives you a combo box with language options (without flags) and translates it inline for you to almost any thinkable language.

Google Translate Tools

Anriëtte Combrink
A: 

I managed to solve this one without JavaScript only by using CSS. Fortunately I found an example and copied the functionality.

A simple dropdown was not enough, I needed to display the flags of the languages.

Germstorm