JS在原有的值上累加,怎么实现在线等 function RegIDContainer(RegID){ spilthInfoValues = document.getElementById("SpilthInfoRegID").value; spilthInfoValues==""? spilthInfoValues=RegID: spilthInfoValues+=","+RegID; alert(spilthInfoValues);}这样行不? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看错了,不好意思。如果每次都取SpilthInfoRegID的值的话,在此基础上加,再回传给SpilthInfoRegIDfunction RegIDContainer(RegID){ spilthInfoValues = document.getElementById("SpilthInfoRegID").value; spilthInfoValues==""? spilthInfoValues=RegID: spilthInfoValues=","+RegID; alert(spilthInfoValues); document.getElementById("SpilthInfoRegID").value = spilthInfoValues;}如果不用每次都取SpilthInfoRegID的值的话,把spilthInfoValues = document.getElementById("SpilthInfoRegID").value;拿到RegIDContainer(RegID)的外面。再function RegIDContainer(RegID){ spilthInfoValues==""? spilthInfoValues=RegID: spilthInfoValues+=","+RegID;}全调用完了再document.getElementById("SpilthInfoRegID").value = spilthInfoValues; 本地是gb2312 网站是utf-8 怎么提交? 帮忙改个代码吧 ie 与ff下显示不一样! 如何获取网页里的所有可获得焦点的控件 javascript的笔试题目(共17道) 高分求正则表达例子,分不够再加。。。。要求如下。 求實現如下功能的JavaScript代碼 100分问:js中嵌套struts<bean:write>时,提示缺少对象 如何点了按钮跳转到指定页面。记不起来了:( 我又来了,真不好意思?一个关于关闭窗口的问题? html中JS挂载问题【大神们进啊】 用JS如何动态提取数据库里的数据! 高分求结果的样式/
如果每次都取SpilthInfoRegID的值的话,在此基础上加,再回传给SpilthInfoRegIDfunction RegIDContainer(RegID)
{
spilthInfoValues = document.getElementById("SpilthInfoRegID").value;
spilthInfoValues==""? spilthInfoValues=RegID: spilthInfoValues=","+RegID;
alert(spilthInfoValues);
document.getElementById("SpilthInfoRegID").value = spilthInfoValues;
}
如果不用每次都取SpilthInfoRegID的值的话,
把spilthInfoValues = document.getElementById("SpilthInfoRegID").value;拿到RegIDContainer(RegID)的外面。
再function RegIDContainer(RegID)
{
spilthInfoValues==""? spilthInfoValues=RegID: spilthInfoValues+=","+RegID;
}全调用完了再document.getElementById("SpilthInfoRegID").value = spilthInfoValues;