title: How can i get value of Javascript function, inside jsp?
body: <p>This is my demo.jsp page</p>
  
  <pre><code>&lt;head&gt;
      &lt;script&gt;           
          function source(key){
              var k=document.getElementById(key);
              var UserSelectedOption = k.options[k.selectedIndex].text;
              alert(UserSelectedOption);               
          }           
      &lt;/script&gt;            
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;body&gt;
      &lt;%
         //How can i get UserSelectedOption value here;
      %&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here i'm getting UserSelectedOption is "hello",how can i use it inside jsp body page.thanks for your help.</p>