I'm able to change the language only once(First time after loading the page). If i select another language after the first selection , language is not changing. Here is my code
<select id="selectedLanguageId" onchange="changeLanguage(this.value)">
<option value="ENGLISH" selected="selected" >English</option>
<option value="HINDI">Hindi</option>
<option value="TAMIL">Tamil</option>
<option value="MALAYALALM">Malayalam
function changeLanguage(val) {
var data = val;
$("#stdTextArea").html("");
var options = {
sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage: [google.elements.transliteration.LanguageCode[data]],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};
var control = new google.elements.transliteration.TransliterationControl(options);
control.makeTransliteratable(['stdTextArea']);
}