title: How to get select option value from javascript to jsp
body: <p>My html is having a selection option value box,if i select any option from that box ,i will get value in javascript but i want this value in jsp because using this string i am showing selected rows from database,i tried request.getparameter also but didn't work
  code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function getAppId()
  {
    var value=document.getElementById("planeselect").value;
    document.getElementById("demo").innerHTML="application Id:"+value;
  
  }
  &lt;/script&gt;
  
  &lt;select id="planeselect" onchange="getAppId()"&gt;
          &lt;%
               Set&lt;String&gt; set=appsList.keySet();
              for (String s:set) {
                  String appName = (String) appsList.get(s);
          %&gt;
          &lt;option value="&lt;%=s%&gt;"&gt;&lt;%=appName%&gt;&lt;/option&gt;
          &lt;%
              }
          %&gt;
      &lt;/select&gt;
  </code></pre>