title: selecting s:select value using javascript
body: <p>I have an iterator in jsp and the iterator contains 2 lists:</p>
  
  <pre><code>&lt;s:iterator value="reportNamesList"&gt;
       &lt;s:select name="hour" listKey="codeDesc" listValue="code" list="hourList" /&gt;
       &lt;s:select name="minute" listKey="codeDesc" listValue="code" list="minutesList" /&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>Now my requirement is that when hour value is selected (say as 10), the minute dropdown value should also become 10.</p>
  
  <p>I am using javascript. Kindly suggest how to do it.</p>