标签:
网格中的单元格弹出一个窗口
$(document).ready(function(){
var s=$(‘#grdTest_Div‘);
var tr=$(‘#grdTest_Div‘).children().children().children().children();
var grid = document.all.grdTest;
tr.each(function(i,j){
if(i!=0&&i!=tr.length)
{
$(‘td‘,j).eq(3).click(function(){
var x = i+3;
var strPH=grid.rows[i].cells[2].innerText;
var url=‘CommPage.aspx?PU=501261&&CS=‘+strPH;
var width=1000;
var height=600;
window.showModalDialog(url, "", "dialogWidth="+width+"px;dialogHeight="+height+"px");
})
}
})
})
标签:
原文地址:http://www.cnblogs.com/nuaaydh/p/4313194.html