js 获取下拉框中被选的值

来源:互联网 发布:联想未能启动承载网络 编辑:程序博客网 时间:2024/06/05 15:41
//获取下拉框中被选的值
function GetFile()
{
var objYear=document.getElementById("txtfileurl");
var selfile=objYear.options[objYear.selectedIndex].value;


window.location.href = "http://localhost:88/syspro/service/DownloadData/DownClick.php?txtfileurl=" + selfile;
}