document.formName.selectName[document.formName.selectName.selectedIndex].value
document.formName.selectName[document.formName.selectName.selectedIndex].text
document.formName.selectName[document.formName.selectName.selectedIndex].text
解决方案 »
- 梅花雪,关于MZTREEVIEW2.0 控件中checkbox 的问题,我如何得到用户选中的值,怎样设置默认值?
- 请教inject: function()是什么意思?
- google今天挂了好久了,纪念一下!
- [求助] 弹窗的页面如何刷新父页面?
- xml的解析问题
- 为什么.click()这样的javascript语句在firefox里面无效?
- 如何根据一个下拉框的值来动态确定另一个下拉框的内容呢?
- 如何获得flash的原始尺寸?
- 小问题一个:怎么判断输入表单的字符串是一个数字啊????
- 有没有类似MySQL客户端的在线编辑器?
- 在ie中想用层实现,提交后请等待的对话框!
- 怎么改变当前窗口连接???
for(var i=0; i<selObj.options.length; i++)
{
alert(selObj.options[i].text);
alert(selObj.options[i].id);
}alert(selObj.options[selObj.selectedIndex]);
<option value="">
<option value="001">001
<option value="002">002
</select>