我要实现点击表格中的A、B、C所在单元格跳转到一个连接,其参数值(即x)由单元格中的A、B、C进行替换,我在jquery如何取得,请写出代码,谢谢!$("#pindex td").click(function()
                { $("#plists").load("plists.aspx?Initletter=x");});<div id="pindex">
    <table cellSpacing=1 cellPadding=1 align=center border=0 style="margin-top:16px;">
        <tr>
            <td>A</td>
            <td>B</td>
            <td>C</td>

解决方案 »

  1.   

    http://bbs.chinaunix.net/thread-3667866-1-1.html
      

  2.   

    先把A,B,C 读出来。。然后把它传给参数x
      

  3.   

    //A
    $("table").find("tr").eq(0).find("td").eq(0).click(function(){
      window.open("http://baidu.com?prameter="+$(this).html());
    });
    //B
    $("table").find("tr").eq(0).find("td").eq(1).click(function(){   window.open("http://baidu.com?prameter="+$(this).html()); });
    //C
    $("table").find("tr").eq(0).find("td").eq(2).click(function(){   window.open("http://baidu.com?prameter="+$(this).html()); });
      

  4.   

    $("#plists").load("plists.aspx?Initletter=" + $(this).text());
      

  5.   


         $("#pindex").find("td").click(function(){
             $("#plists").load("plists.aspx?Initletter=" + $(this).text());}
         });