title: pressing submit button with javascript
body: <p>actually I have:       </p>
  
  <pre><code>&lt;form action="&lt;?php echo $this-&gt;getUrl('checkout/cart/estimatePost') ?&gt;" method="post" id="shipping-zip-form" name="shipping-zip-form"&gt;
      &lt;label for="postcode"&lt;?php if ($this-&gt;isZipCodeRequired()) echo ' class="required"' ?&gt;&gt;&lt;?php echo $this-&gt;__('Zip/Postal Code') ?&gt;&lt;/label&gt;
      &lt;div class="input-box"&gt;
          &lt;input class="input-text validate-postcode&lt;?php if ($this-&gt;isZipCodeRequired()):?&gt; required-entry&lt;?php endif;?&gt;" type="text" id="postcode" name="estimate_postcode" value="&lt;?php echo "04000"; ?&gt;" /&gt;
      &lt;/div&gt;
      &lt;div class="buttons-set"&gt;
          &lt;button type="button" id="send" title="&lt;?php echo $this-&gt;__('Get a Quote') ?&gt;" onclick="coShippingMethodForm.submit()" class="button"&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Get a Quote') ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>and I unsuccessful tried:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      document.getElementById('send').submit();
  document.forms['shipping-zip-form'].submit();
  
  &lt;/script&gt;
  </code></pre>
  
  <p>What I want to do it's quite simple, let javascript automatically press the button so submit the form. I will not need the submit button anymore, I need to automate the press button process. Thx</p>