how to submit the form in javascrit using that form class name?
<p>im traying to submit a form through javascript that form coming dynamically from google api.the form doest having name. but it having class name.my problem is i want to subit that form using classname </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>
