Mission: To use the Google translate API var lang = "english"; lang = $("#selector").children("option:selected").attr("value"); $('#target').translate(lang); $("#selector").change( function() { lang = $("#selector").children("option:selected").attr("value"); $('#target').translate(lang); } );

Hello. This is some basic text. The quick brown fox jumped over the lazy dog.
Hello. This is some basic text. The quick brown fox jumped over the lazy dog.