没有Test这个把是text直接在后面加就是的<input type="text" name="txt" /><label id="lab1">呵呵</label>
解决方案 »
- js获取select 显示内容
- ExtJs 如果创建 动态的 表单
- jquery 中的筛选问题
- js 让页面中所有的form表单为readonly
- 如何获取某个表单下面某个文本框的值
- 主页中选中下拉框中"other"值时就弹出一页面,输入值后按submit传回该值(到主页面),加在下拉框的菜单中,用javascript怎么做?
- “下移”按钮
- [急]如何定义表格中id大于某个数值的行显示背景色?
- 动态显示数据库内容的问题!!!
- 在一个具有多筐架的网页中,怎么样关闭该网页?在线求救!
- FileUpload控件相应另外一个按钮的Click事件后,画面第一次点击按钮不能刷新的问题
- 来者有分,用过dtree的请进,如何增加和删除菜单项,在线急等!
<SCRIPT LANGUAGE="JavaScript">
<!--
function $(sId) {return document.getElementById(sId)}
是这样的效果吗?function change(oInput){
if(!$("input")){
var div = document.createElement("div");
var input = document.createElement("input");
input.type = "text";
input.id = "input";
document.body.appendChild(div);
div.appendChild(input);
input.value = oInput.value;
oInput.readOnly = true;
oInput.style.textDecoration = "line-through";
oInput.style.color = "#ff0000";
}
}//-->
</SCRIPT>
<INPUT TYPE="text" id="otxt" value="aaaa" onclick="change(this)">
<!--
function $(sId) {return document.getElementById(sId)}
function change(oInput){
if(!$("input")){
var div = document.createElement("div");
var input = document.createElement("input");
input.type = "text";
input.id = "input";
document.body.appendChild(div);
div.appendChild(input);
input.value = oInput.value;
oInput.readOnly = true;
oInput.style.textDecoration = "line-through";
oInput.style.color = "#ff0000";
}
}//-->
</SCRIPT>
<INPUT TYPE="text" id="otxt" value="aaaa" onclick="change(this)">