title: how can get dropdown selected value in textbox in jsp
body: <p>i want selected value in input text field in jsp how to do please help? I am new with jsp.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;select class="leavetype" name="leavetype"&gt;
      &lt;option value="10"&gt;CL&lt;/option&gt;
      &lt;option value="7"&gt;ML&lt;/option&gt;
      &lt;option value="12"&gt;SL&lt;/option&gt;
      &lt;option value="20"&gt;EL/PL&lt;/option&gt;
      &lt;option value="5"&gt;CPL&lt;/option&gt;
    &lt;/select&gt;
    &lt;input type="text" name="leave"/&gt;</code></pre>
  </div>
  </div>
  </p>