views:

12

answers:

0

Hello, I want to use google ajax translate api to translate multiple parts of my page...

Iam using this code: http://code.google.com/apis/ajaxlanguage/documentation/#Translate

But this will only translate the element in my page, that has the id="text".

But what i want is that, my page will contain multiple divs with id="text" and i want to translate all of them at a time, not only the first div content.

Is there any way i can tweak the javascript or how to achieve it?