一个javascript的问题 document.form1.eval(str).value="343" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script >function setValue(sID){ if(sID.tagName=='INPUT'&&sID.type=='text') { sID.value='11111111'; }}</script><form><input type="button" runat="server" id="btn"><input type =text name ="a" onfocus ="setValue(this)"><input type =text name ="b" onfocus ="setValue(this)"><input type =text name ="c" onfocus ="setValue(this)"></form> var str = "text1";eval("document.form1."+ str).value="343"或者document.form1.elements(str).value="343"; meizz(梅花雪) 比较符合我的要求谢谢家了 有哪位大神用js弄过这类时钟 xhEditor谁使用过?求助!!预览功能实现 panel中放置一个Ext.ProgressBar却不显示,这是为什么呢? jquery 选择性验证 JS拖拽事件后保存效果 把本页的一些内容传到下个网页里 jquerry ui中dialog表单无法提交 var data = {} 这样是在定义什么?没见过 如何在Mozilla中出发DIV 的onfocus事件 请问如何改变按钮上文字的属性?(比如字体和大小等) 高分求救img自动缩略的功能 求一个正则表达式.
function setValue(sID)
{
if(sID.tagName=='INPUT'&&sID.type=='text')
{
sID.value='11111111';
}
}
</script>
<form>
<input type="button" runat="server" id="btn">
<input type =text name ="a" onfocus ="setValue(this)">
<input type =text name ="b" onfocus ="setValue(this)">
<input type =text name ="c" onfocus ="setValue(this)">
</form>
eval("document.form1."+ str).value="343"
或者
document.form1.elements(str).value="343";
谢谢家了