# Accesing dropdown in js file

**URL:** <https://discourse.nodered.org/t/accesing-dropdown-in-js-file/45221>\
**Category:** Developing Nodes\
**Created:** [5 May 2021 13:20 UTC](https://discourse.nodered.org/t/accesing-dropdown-in-js-file/45221 "2021-05-05T13:20:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 May 2021 07:41 UTC](https://discourse.nodered.org/t/accesing-dropdown-in-js-file/45221/4 "2021-05-06T07:41:40Z")

</div>

Your question is "Accesing dropdown in js file"

the js file is server side.

Also, this was spelled out in the other post...

> [@Custom node with values from global](https://discourse.nodered.org/t/custom-node-with-values-from-global/44977/18):
>
> ```auto
> if(value == node.selectedValue) $('#node-input-options').attr('selected','selected'); //<<<<<
> 
> ```

---

_[View the full topic](https://discourse.nodered.org/t/accesing-dropdown-in-js-file/45221)._
