pengpd 发表于 2013-1-29 08:42:27

javascript中选中select选中的值

var sel = document.getElementById(”select_id”); //selectidvar index = sel.selectedIndex; // 选中索引var text = sel.options.text; // 选中文本var value = sel.options.value; // 选中值
页: [1]
查看完整版本: javascript中选中select选中的值