Get text value of selected option in Jquery

This question already has an answer here:

  • jQuery get specific option tag text 20 answers

  • What about this? fiddle

    $('#myselect').change(function() {
            $('#secondSelect').html('');
            jQuery.each($("option:selected",this), function(i, val) {
                $('#secondSelect').append($(val).clone());
            });
    });
    
    链接地址: http://www.djcxy.com/p/83060.html

    上一篇: 从组合框的值中获取选项的文本

    下一篇: 在Jquery中获取所选选项的文本值