下拉列表的选定索引更改 [英] selected index change of dropdown

查看:78
本文介绍了下拉列表的选定索引更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在javascript中获取asp:dropdownlist的值.我需要

Is it possible to get the value of an asp:dropdownlist in javascript. I need
to get that value for getting the value of the filds from other table in database and show in adata list?

推荐答案

var e = document.getElementById("dropdown1"); // select element
var selValue = e.options[e.selectedIndex].value;



使用JavaScript处理下拉列表选择 [



Using JavaScript to handle drop-down list selections[^]


这篇关于下拉列表的选定索引更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆