append Selectbox value to textbox on body load
<p>I am working on dynamic page.</p>

<p>Using {$pagetitle} smarty tag I get selectbox something like this.</p>

<pre><code>&lt;select name="page"&gt;
&lt;option value="page1" title="Page1"&gt;Page1&lt;/option&gt;
&lt;option value="page2" title="Page2" selected&gt;Page2&lt;/option&gt;
&lt;option value="page3" title="page3"&gt;Page3&lt;/option&gt;
&lt;option value="page4" title="Page4"&gt;Page4&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I can not have selectbox id as this is automatically generated through {smarty} tag</p>

<p>I want to append value of previously selected option to the textbox below on body load.</p>

<pre><code>&lt;input type="text" value"" id="pageno" /&gt;
</code></pre>

<p>How can I achieve this using JQuery?</p>

<p>Thanks</p>
