如何把输入框中内容变为html标签的value值? htmljavascript 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 输入后 value 的值就已经是当前输入值 。 document.getElementById (“singleid2”).value= document.getElementById (“singleid”).value 怎么获取到输入的值呢?我得到的值都是undefined <!DOCTYPE html><html><head> <script> function setValue(){ document.getElementById("singleid2").value= document.getElementById ("singleid").value;}</script></head><body> <form >input:<input name="phrase" type="text" id="singleid"><input type="button" value="submit" onclick="setValue()"><input type="text" value="" id="singleid2"/></form></body></html> ztree不能获取焦点 ajaxFileUpload 上传图片 跨子域上传可返回值得不到 IE和Chrome下JS取值不同? 急!!如何从数据库读取记录生成联动菜单 能用innerHTML在table里添加行? 您能寫出等價的javascript 代碼嗎? 下面是完全正確的vbscript 代碼 单选按钮问题 如何动态取值? 动态生成文本框问题 easyui-datagrid 分页用不来 求帮助补代码 附件上传的小问题。。。 IE中引用js,报错“在遇到jscript运行时错误时中断-缺少对象”
<html>
<head>
<script>
function setValue(){
document.getElementById("singleid2").value= document.getElementById ("singleid").value;
}
</script>
</head>
<body>
<form >
input:<input name="phrase" type="text" id="singleid">
<input type="button" value="submit" onclick="setValue()">
<input type="text" value="" id="singleid2"/>
</form>
</body>
</html>