Select list text not changing when j

This question already has an answer here:

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

  • You should use value of option to select it so your code should be :

    $("#heightSelect1").val('500').change();  
    

    If you want to select option with text 5' 0" .

    Hope this helps.

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

    上一篇: 如何使用jQuery选择下拉列表中的第一个元素?

    下一篇: j时选择列表文本不变