title: how to get selected index for h:selectOneMenu
body: <p>I want to get the selected index for my h:selectOneMenu field.</p>
  
  <p>I can either use javascript or jquery</p>
  
  <p>please help</p>
  
  <pre><code>&lt;h:selectOneMenu id="myId" value="#{AddScriptBean.scriptEngine}"  &gt;
          &lt;f:selectItems value="#{AddScriptBean.scriptEngines}"/&gt;
  &lt;/h:selectOneMenu&gt;
  </code></pre>