title: how to use css button to post method in a form?
body: <p>I love this article 
  <a href="http://www.jankoatwarpspeed.com/post/2009/03/11/How-to-create-Skype-like-buttons-using-jQuery.aspx" rel="nofollow noreferrer">"How to create Skype-like buttons using jQuery"</a></p>
  
  <p>But the comment list is already closed so I need your help guys!</p>
  
  <p>How to make this code to a form using submit method?</p>
  
  <pre><code>&lt;a class="button" href="#"&gt; 
  &lt;img src="*.png" alt="" /&gt;Add to cart&lt;/a&gt;
  </code></pre>
  
  <p>This is the sample of my form where I want the css button to be inserted:</p>
  
  <pre><code>&lt;form action="http://ww6.aitsafe.com/cf/addmulti.cfm" name="mal" method="post"&gt;
  &lt;input type="hidden" name="userid" value=""&gt;
  &lt;input type="hidden" name="return" value=""&gt;    
  &lt;input type="hidden" name="nocart"&gt;
  &lt;input type="hidden" name="qty1" value="1"&gt;
  &lt;input type="hidden" name="product1" value=""&gt;
  &lt;input type="hidden" name="price1" value="150.00"&gt;
  
  &lt;input type=submit value="Add to Cart" onclick="alert('Added to cart\n\nThis page will refresh');"&gt;
  </code></pre>
  
  <p>update... yehey! :)</p>
  
  <p>Thank You to PCALCAO for the link <a href="https://stackoverflow.com/questions/313478/how-best-to-make-a-link-submit-a-form">How best to make a link submit a form</a></p>
  
  <p>There I found the answer of CHRIS to be very helfpful &amp; now it's working...</p>
  
  <p>Correct answer:</p>
  
  <pre><code>&lt;a class="button" href="#" onclick="document.mal.submit(); return false;"&gt; 
  &lt;img src="*.png" alt="" /&gt;Add to cart&lt;/a&gt;
  </code></pre>
  
  <p>:)</p>