用JS 赋值后 textbox值不显示
//弹出隐藏层
function ShowDiv(show_div,bg_div,zhiBiaoName,zhiBiaoCatalogNo,Rid,GridIndex){
document.getElementById(show_div).style.display='block'
document.getElementById(bg_div).style.display='block' ;
document.getElementById("<%=txtZhiBiaoName.ClientID%>").value = zhiBiaoName;
var bgdiv = document.getElementById(bg_div);
bgdiv.style.width = document.body.scrollWidth;
// bgdiv.style.height = $(document).height();
$("#"+bg_div).height($(document).height());
};
用JS 赋值后 这个赋值是已近赋值了
document.getElementById("<%=txtZhiBiaoName.ClientID%>").value = zhiBiaoName;
// alert(document.getElementById("<%=txtZhiBiaoName.ClientID%>").value)
已经测试了的
可就是在 textbox控件中不显示值
<div id="MyDiv" class="white_content" runat="server" style="text-align: center; left: 40%; top: 90%; " >
<div style="text-align: right; cursor: default; height: 30px;">
<span style="font-size: 16px; text-align: right; border-right: 50px" onclick="CloseDiv('MyDiv','fade')">
关闭</span>
</div>
<table>
<tr>
<td align="center">
<asp:TextBox ID="txtZhiBiaoName" runat="server" ></asp:TextBox>
<asp:HiddenField ID="hddCatalogNo" runat="server" />
<asp:HiddenField ID="hddRid" runat="server" />
<asp:HiddenField ID="hddGridIndex" runat="server" />
</td>
</tr>
<tr>
<td align="center">
&nbs