function add_singer(object,value,text)//添加数据
{
object.options.add(new Option(text,value,true,true));
}function remove_singer(object,index)//删除数据
{
object.options.remove(index)
}
{
object.options.add(new Option(text,value,true,true));
}function remove_singer(object,index)//删除数据
{
object.options.remove(index)
}
解决方案 »
- 求助此函数,不是很明白。
- 求jq弹出div优化实现!
- It must be served with type text/cache-manifest. 是什么意思??
- jquery block插件 和contextmenu插件问题。
- 一张图片中包含了多张小图片,怎么实现只显示其中某一小张的?
- 直接把所有javascript代码写在页面中和写在.js文件中,在网络传输中有区别吗?
- 请问如何用javascript检测浏览器是否支持XML+XSL制作的网页?
- email的检测,100分
- 在公司内部可以输入sharplee82.vicp.net访问了,可是外网访问不到,是怎么回事?
- 前端 无法获取未定义或 null 引用的属性“nodeName”
- 怎样去掉<a href="xx.html">xx.html</a>的<a href="xx.html"></a>,只留下xx.html
- TD的动态求和问题
var manarray= new Array();
function add(show) //show is document.form1
{
for (i=0;i<show.chooseman.options.length;i++)
{
if (show.chooseman.options[i].selected==true)
{
var value=show.chooseman.options[i].value;
var text=show.chooseman.options[i].text
manarray.push(value);
show.all.docreciever.options.add(new Option(text,value,true,true));
show.chooseman.options.remove(i)
}
}
}
function popfromarray()
{
manarray.pop();问题2:在这里如何取出manarray中的最后一个值,并且添加到show.chooseman中去?
len=manarray.length
text=manarray[len-1]
value=manarray[len-1]
show.chooseman.options.add(new Option(text,value,true,true));
}
改为:
show.docreciever.options.add(new Option(text,value,true,true));