Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Wish I could upvote multiple times. Its an hour past quitting time and now I can go home. Commented Jul 26, 2018 at 11:18
  • Great answer! short and simple...This should be on top...Keep voting up. Commented Nov 2, 2019 at 8:28
  • 3
    This worked in my case, thanks! But doesn't this select not by the displayed text, as the OP requested, but by the value itself, which the OP does not have? Commented Feb 17, 2020 at 14:59
  • 1
    $("#dropdown").val(varible).change(); is not working for me :( Commented Mar 8, 2022 at 0:57