0 Replies Latest reply on Jul 21, 2011 9:34 AM by swastik padhy

    How to get the selected value of a <rich:select> from a java script function?

    swastik padhy Newbie




              I have a <rich:select> in my .xhtml page and a java script function.I want to retrive the value , which is selected in the <rich:select> in the java script function.




      < script type="text/javascript">

      function test(){

      // how to get the value of selected item





      <rich:select onChange="test();" value="#{newSrvBean.questionBean.questionType}" id="item">


      < f:selectItems value="#{master.questionTypeList}"/>



      </ rich:select>