我想在使用 Jquery 单击按钮时创建一个弹出窗口
当我单击带有以下代码的按钮时,应该会弹出窗口。当我单击按钮时,我需要创建一个弹出窗口,询问您是新客户还是现有客户。我该如何继续这样做。应该感谢帮助。
<a style="display: inline-block; width: 85px; font-weight: normal;" href="javascript:__doPostBack('mrpPhones$ctl06$lineItemPrice$lnkbtnAddToCart','')" class="button-genericsprite green-button-23cart" title="Add to cart" id="mrpPhones_ctl06_lineItemPrice_lnkbtnAddToCart" onclick="javascript:hideProgressBar();return openPlanChangeRequiredPopup('cd244ed6-7afc-4db5-bf764b7de21c9003','https://s.tmocache.com/images/png/products/phones/LG_Optimus_T_Black/110x110.png');">
<span style="font-size: 12px;">Add to Cart</span>
</a>
When I click on the button with the code below popup should come. I need to create a popup asking are you a new customer or existing customer something like that when i click on button. How can I proceed doing that. Help should be appreciated.
<a style="display: inline-block; width: 85px; font-weight: normal;" href="javascript:__doPostBack('mrpPhones$ctl06$lineItemPrice$lnkbtnAddToCart','')" class="button-genericsprite green-button-23cart" title="Add to cart" id="mrpPhones_ctl06_lineItemPrice_lnkbtnAddToCart" onclick="javascript:hideProgressBar();return openPlanChangeRequiredPopup('cd244ed6-7afc-4db5-bf764b7de21c9003','https://s.tmocache.com/images/png/products/phones/LG_Optimus_T_Black/110x110.png');">
<span style="font-size: 12px;">Add to Cart</span>
</a>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我理解正确的话,我会使用 jQuery UI 中的模式对话框:
http://jqueryui.com /演示/dialog#modal
If I'm understanding you correctly, I would use a modal dialog from jQuery UI:
http://jqueryui.com/demos/dialog#modal
我想你需要这样的
HTML:
I think You need something like this
HTML: