我喜欢这篇文章 "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