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
  • 49,286
  • 91
  • 294
  • 502

1 Answers1

1

Should literally be as simple as:

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