超简单JS问题 现有文本框,我想通过点击按钮为其赋值。并且文本框为不可编辑状态。只能通过按钮为其赋值。例如点击按钮test,点击之后,在文本框中要使“test”自动填入文本框中。请问大家如何实现此功能。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><script type="text/javascript" charset="gbk">function onClikebut() { document.getElementById("asd").value="asdasdasdasd"; return false;}</script></head><body><input type="text" name="asd" id="asd" readonly="readonly"/><input name="" type="button" onclick="onClikebut();return false;"/></body></html>你看看能用不? ligerui IE8 dailog滚动条 问题 着急求帮助 问个概念问题。 在java web project中再次添加flex开发环境 Struts 问题?在线等!!! 请教:如何在JSP中使用图片形式的登录按钮实现提交表单功能 struts的乱码问题,求教! JSP页面的问题 在客户端applet生成直方图? jsp 里面的 useBean 的类怎么能用?应如何配置? 寻JBUILDER6的注册号 struts2 拦截器想学习下,请教会的朋友们! An exception occurred processing JSP page
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript" charset="gbk">
function onClikebut() {
document.getElementById("asd").value="asdasdasdasd";
return false;
}
</script>
</head><body>
<input type="text" name="asd" id="asd" readonly="readonly"/>
<input name="" type="button" onclick="onClikebut();return false;"/>
</body>
</html>
你看看能用不?