0

I have a URL with url param userId

http://localhost:8080/assignment?userId=s-00589

I have a dropdown-menu

I can access the url param and get that userId.

Now I'm wondering how do I use that userId to set my default dropdown-menu to that one.The one with the value="s-00589"

Any helps / suggestions will be much appreciated.

code-8
  • 54,650
  • 106
  • 352
  • 604

1 Answers1

1

Should literally be as simple as:

$('#rn-dd').val(userId_from_url);
Ben Fried
  • 2,168
  • 1
  • 14
  • 13