获取使用jQuery在下拉列表中选择的当前值

我在我的页面上有一组动态生成的下拉框。基本上我克隆他们使用jQuery。现在我想捕获在每个下拉选择的更改事件的值。

我尝试这样的东西没有工作。

$('._someDropDown').live('change',function(e) {
            //debugger;
            var v = $(this);
            alert($(this + ':selected').val());
            alert($(this).val());
        });

我如何完成它?

解决方法

这是你需要的:)
$('._someDropDown').live('change',function(e) {
    console.log(e.target.options[e.target.selectedindex].text);
});

对于新的jQuery使用

$(document).on('change','._someDropDown',function(e) {
    console.log(this.options[e.target.selectedindex].text);
});

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...