单击链接标记时加载Jquery弹出框,并显示ID中的信息? [英] Load Jquery popup box when click on link tag and show the information from the ID?

查看:105
本文介绍了单击链接标记时加载Jquery弹出框,并显示ID中的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经用链接标记从数据库的数据列表中列出了一些东西.在首页上看起来像这样.

ID = 21点点我

Hi
I have listed some things from a database in a datalist with a link tag. Look like this on front page.

ID= 21 something click me

<HeaderTemplate>
                 <p class="overskrift_bestil">Ekstra varer</p>
             </HeaderTemplate>

             <ItemTemplate>

                   <td><asp:TextBox ID="TextBox_deli" runat="server" Width="15" Height="15"></asp:TextBox></td>
                   <td><p><%#Eval("deli_navn") %></p></td>
                  <td>
                    <a href="#contactFormContainer" id="showdialog2">Show the Dialog</a>


                  </td>

            </ItemTemplate>
         </asp:DataList>



当我单击单击我"链接时,我希望弹出框在ID = 21上显示有关该产品的所有信息.我知道单击html链接时必须加载一些查询字符串,但是我被卡住了.这就是我现在所拥有的:



When I click the click me link I want the popup box to show all the information on the product on ID=21. I know that I have to load some querystring when I click the html link, but I am stuck. This is what I have now:

$(document).ready(function () {

          $('#contactFormContainer').hide();

          $('#showdialog2').click(function () {
              $("#contactFormContainer").load("bekraeft.aspx?deli_id=deli_id");
              $("#contactFormContainer").fadeToggle('slow');
          });
      });

    </script>



希望有人能帮助我

/Tina



Hope someone could help me

/Tina

推荐答案

(文档).ready( function (){
(document).ready(function () {


(' #contactFormContainer').hide();
('#contactFormContainer').hide();


(' #showdialog2').click(函数(){
('#showdialog2').click(function () {


这篇关于单击链接标记时加载Jquery弹出框,并显示ID中的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆