标签asp:Label 页面取值

<asp:Label id="txtAmountOfMoneySum" onClick="changetext()">披着羊皮的狼</asp:Label >
<script language="javascript">
function changetext(){
var myDiv=document.getElementById("txtAmountOfMoneySum");
myDiv.innerText="合計";
}
</script>

asp.net 标签<asp:Label> IE页面转译成<span>  ,非<input>

取值: document.getElementById("txtAmountOfMoneySum").innerText

posted on 2008-08-14 14:32  xinxinbb  阅读(797)  评论(0编辑  收藏  举报