How to trigger select option on button click?
<p>I want some JavaScript which can trigger/open select option while someone click on button using below code for select option</p>

<pre><code>&lt;div class="period" title="Choose a number of nights"&gt;
&lt;span class="label"&gt;Nights&lt;/span&gt;
&lt;span class="input"&gt;
&lt;select rel="period" value="4"&gt;
&lt;option value="1"&gt;1&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt;
&lt;option value="4"&gt;4&lt;/option&gt;
&lt;option value="5"&gt;5&lt;/option&gt;
&lt;option value="6"&gt;6&lt;/option&gt;
&lt;option value="7"&gt;7&lt;/option&gt;
&lt;option value="8"&gt;8&lt;/option&gt;
&lt;option value="9"&gt;9&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;/select&gt;&lt;/span&gt;&lt;/div&gt;
</code></pre>

<p>Using below code for button</p>

<pre><code>&lt;td class="total"&gt;
&lt;a class="im-pricebutton has-hover" href="javascript://;" value="A 2 night booking condition applies to this period"&gt;
&lt;span class="book im-pricebutton-label"&gt;Min 2 nights&lt;/span&gt;
&lt;span class="number im-pricebutton-amount"&gt;$0&lt;/span&gt;
&lt;/a&gt;&lt;/td&gt;
</code></pre>

<p>As of now I have setup condition of Minimum night select as a 3,5 and 10 it's very on products so when someone don't pass this night function it'll show above code to select minimum night but how to pass some custom JavaScript which can open up drop down automatically when they click on button.</p>