asp循环出来记录,点击一条弹出层,怎么向层传递参数?
asp循环出来记录,点击一条弹出层,怎么向层传递参数?<input type=button name=popBox value=入库 onclick=""popBox()"">
<style>
/*背景层*/
#popLayer {
display: none;
background-color: #B3B3B3;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);/* 只支持IE6、7、8、9 */
}
/*弹出层*/
#popBox {
display: none;
background-color:#F8F8F8;
z-index: 11;
width: 300px;
height: 100px;
position:fixed;
top:0;
right:0;
left:0;
bottom:0;
margin:auto;
text-align: center;
}
#popBox .close{
text-align: right;
margin-right: 5px;
background-color: #B3B3B3 ;
}
/*关闭按钮*/
#popBox .close a {
text-decoration: none;
color: #2D2C3B;
}
</style>
<script>
/*点击弹出按钮*/
function popBox() {
var popBox = document.getElementById("popBox");
var popLayer = document.getElementById("popLayer");
popBox.style.display = "block";
popLayer.style.display = "block";
console.log(i);
};
/*点击关闭按钮*/
function closeBox() {
var popBox = document.getElementById("popBox");
var popLayer = document.getElementById("popLayer");
popBox.style.display = "none";
popLayer.style.display = "none";
}
</script>
/**********弹出的层,物料编码怎么接收到循环中的记录值?
<div id="popBox">
<div class="close">
<a href="javascript:void(0)" onclick="closeBox()">关闭</a>
</div>
<div class="content">
<form method="POST" action="?"><br>物料编码:<%=Request("cmobile")%><br>入库数量:<input type="text" name="T1" size="6"> <input type="submit" value="提交" name="B1"></form>
</div>
</div>
<div id="mjs:tip" class="tip" style="position:absolute;left:0;top:0;display:none;"></div>