Select Dropdown items through Javascript?

Can we Select Dropdown items through JavaScript ?

I need to select the item automatically .
I am getting project id from URL and I need to select the project matching with that id .

Here is topic that talks about using connections and record ID’s from a URL. It may be more useful to ask your question in that topic.