title: How to submit the form in JavaScript using that form class name?
body: <p>I'm trying to submit a form through JavaScript that form coming dynamically from Google API.</p>
  
  <p>The form doesn't having name. But it having class <code>name.my</code>. The problem is I want to submit that form use it's class name.</p>
  
  <pre><code>&lt;form class="gsc-search-box" accept-charset="utf-8"&gt;
  &lt;table cellspacing="0" cellpadding="0" class="gsc-search-box"&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
         &lt;td class="gsc-input"&gt;
         &lt;input type="text" autocomplete="off" size="10" class=" gsc-input" name="search" title="search" style="background: none repeat scroll 0% 0% rgb(255, 255, 255);" dir="ltr"&gt;
         &lt;/td&gt;
         &lt;td class="gsc-search-button"&gt;
         &lt;input type="submit" value="Search" class="gsc-search-button" title="search"&gt;
         &lt;/td&gt;
         &lt;td class="gsc-clear-button"&gt;
           &lt;div class="gsc-clear-button" title="clear results"&gt;
            &amp;nbsp;
           &lt;/div&gt;
         &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;table cellspacing="0" cellpadding="0" class="gsc-branding"&gt;
       &lt;tbody&gt;
           &lt;tr&gt;
             &lt;td class="gsc-branding-user-defined"&gt;
             &lt;/td&gt;
             &lt;td class="gsc-branding-text"&gt;
             &lt;div class="gsc-branding-text"&gt;
                  powered by
              &lt;/div&gt;
              &lt;/td&gt;
              &lt;td class="gsc-branding-img"&gt;
              &lt;img src="http://www.google.com/uds/css/small-logo.png" class="gsc-branding-img"&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
         &lt;/tbody&gt;
       &lt;/table&gt;
     &lt;/form&gt;
  </code></pre>