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

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

    swastikpadhy84

      Hi,

       

       

              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

      }

      </script>

         

       

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

          

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

       

       

      </ rich:select>

       

       

       

       

      Thanks

      Swastik