【发布时间】:2014-01-03 22:00:40
【问题描述】:
我有这个:
HTML
这是一个在模式窗口中打开 href 的按钮:
<a class="iframe button pink" href="http://www.test.php" > Pay Now <link rel="stylesheet" href="http://www.fethr.com/clients/res/buttonmodal.css">
形式:
<form method="post" />
<input type="text" name="xx" />
<input type="text" name="yy" />
<a class="iframe button pink" href="http://www.test.php" > Pay Now <link rel="stylesheet" href="http://www.fethr.com/clients/res/buttonmodal.css">
<script src="http://www.fethr.com/clients/res/buttonmodal.js"></script></a>
</form>
这个锚按钮。如果我单击它,它将在模式窗口中打开 href。我正在尝试将其用作提交按钮并将值发布到 href 以及在模式窗口中打开它。这可能吗?
【问题讨论】:
-
你在那个可怜的
a标签内试图做的事情是对人类的犯罪...... -
@RCorrie 我想在任何网站上嵌入它,这就是为什么这么多脚本和所有脚本。jquery modal 窗口的脚本,以及相同的 css
-
您能进一步解释一下吗?我不确定您要做什么,抱歉
-
锚中的链接和脚本标签是什么?锚点不是头部,也不是提交按钮。您可以将表单提交给这个特定的操作......只需使用 jQuery 在表单上调用 submit()。
-
@Rcorrie 我实际上需要将一些参数发布到该 url。href 中的 url 是一种付款形式。因此必须将一些参数,如 'amount' , 'name' 等发布到付款表单,并在 jquery 窗口中打开它。这就是我想要实现的目标
标签: php jquery html ajax modal-window