我喜歡這篇文章 "How to create Skype-like buttons using jQuery"如何使用css按鈕在表單中發佈方法?
但是評論列表已經關閉,所以我需要你的幫助!
如何使用提交方法將此代碼轉換爲表單?
<a class="button" href="#">
<img src="*.png" alt="" />Add to cart</a>
這是被插入,我想的CSS按鈕我的表單的示例:
<form action="http://ww6.aitsafe.com/cf/addmulti.cfm" name="mal" method="post">
<input type="hidden" name="userid" value="">
<input type="hidden" name="return" value="">
<input type="hidden" name="nocart">
<input type="hidden" name="qty1" value="1">
<input type="hidden" name="product1" value="">
<input type="hidden" name="price1" value="150.00">
<input type=submit value="Add to Cart" onclick="alert('Added to cart\n\nThis page will refresh');">
更新... yehey! :)
謝謝你PCALCAO的鏈接How best to make a link submit a form
在那裏,我發現克里斯的回答很helfpful &現在它的工作...
正確答案:
<a class="button" href="#" onclick="document.mal.submit(); return false;">
<img src="*.png" alt="" />Add to cart</a>
:)
你的問題不清楚。 – xmarcos
抱歉,因爲我在網頁設計和編程方面很新穎。 :) – Corleone2K