点击绑定行 弹出详细页面 jQuery

<script src="Script/jquery-1.4.min.js" type="text/javascript"></script>
      
   <script type="text/javascript">

       $(document).ready(function() {
           $("tr").click(function(event) {
               var row = jQuery(this)
               var firstParam = row.children("td:eq(0)").text();
               var secondParam = row.children("td:eq(1)").text();                
               var navUrl = "CustomerDetails.aspx?cid=" + firstParam + "&cname=" + secondParam;
               top.location = navUrl;

           });
       });
   </script>
posted @ 2010-01-21 10:43  曾祥展  阅读(1155)  评论(0编辑  收藏  举报