title: How to Do Google transliteration based on Class not Id
body: <p>I am doing a Tamil Language based Web Application. In My application, l used  Dynamic Fields to Add User Details. So, Dynamic Fields have multiple ids how to do this or How to use Google Transliteration based on Class?</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    // Load the Google Transliteration API
    google.load("elements", "1", {
      packages: "transliteration"
    });
  
    function onLoad() {
      var options = {
        sourceLanguage: 'en',
        destinationLanguage: 'ta',
        shortcutKey: 'ctrl+m',
        transliterationEnabled: true
      };
  
      // Create an instance on TransliterationControl with the required
      var control = new google.elements.transliteration.TransliterationControl(options);
  
      // Enable transliteration in the textfields with the given ids.
      var ids = ['temrorary_address', 'permanant_address', 'bankbranch', 'member_name', 'father_husband', 'workingoffice_address', ];
      control.makeTransliteratable(ids);
  
      // Show the transliteration control which can be used to toggle between
      // English and Hindi and also choose other destination language.
      control.showControl('translControl');
    }
    google.setOnLoadCallback(onLoad);
  &lt;/script&gt;
  </code></pre>