How can I change the selected option of a select box using jQuery

This question already has an answer here:

  • Change the selected value of a drop-down list with jQuery 15 answers

  • 尝试这个:

    var your_value='French';
    $('#v_lenguaje').val(your_value);
    

    $('#v_lenguaje').val('Italian');
    

    just use like above, giving the option value

    Fiddle Demo

    链接地址: http://www.djcxy.com/p/83912.html

    上一篇: 基于价值选择期权

    下一篇: 我如何使用jQuery更改选择框的选定选项