title: Getting the selected listValue of <s:select> in javascript
body: <p>I am using  tag of struts to display a list of items.</p>
  
  <pre><code>&lt;s:select name="example" id="example" list="exampleList" listKey="exampleKey" 
  listValue="exampleValue" onchange="fun()"/&gt;
  </code></pre>
  
  <p>Now I have a javascript function:</p>
  
  <pre><code>function fun()
  {
    var ex=document.getElementById("example");
    alert(ex.value);
  }
  </code></pre>
  
  <p>In this function I need to get the listValue of the selected item but when I'm using the above code, it just alerts me the listKey that I have selected. How can I get the listValue instead of listKey in the javascript function?</p>