How can I use Google Translate for translating values in a website form field (text box, text area)?
问题 I want to translate my website using Google Translate. I used the code below. <div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element'); } </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> It is working fine with text of the website, but does not translate the text box, text area's text. Is there a solution? 回答1: