js:
function fnShow()
{
with(document.getElementById("txtA"))
{
alert(value);
}
}
html:
<input type="text" id="txtA" name="txtA" value="aaaa">
<input type="button" value="btnA" onclick="fnShow()">
js:
function fnShow()
{
with(document.getElementById("txtA"))
{
alert(value);
}
}
html:
<input type="text" id="txtA" name="txtA" value="aaaa">
<input type="button" value="btnA" onclick="fnShow()">

被折叠的 条评论
为什么被折叠?
