title: JSF 2.0 Jquery/JS retrieving a value of selectOneRadio in Javascript/jquery
body: <p>I am developing a JSF 2.0 application. How would one check which radio button was selected from my Java script/jquery code?</p>
  
  <p>My radio button code is </p>
  
  <pre><code>   &lt;t:selectOneRadio id="options" value="#{reqscope.selectedRadio}" layout="spread"&gt;
          &lt;f:selectItem itemValue="policynum" itemLabel="Policy number" /&gt;
          &lt;f:selectItem itemValue="custId" itemLabel="Customer ID" /&gt;    
  &lt;/t:selectOneRadio&gt;
  
  
     &lt;t:radio for="options" index="0"  name="search_by1" onclick="policyradioselected()" /&gt;
      &lt;t:radio for="options" index="1"  name="search_by" onclick="customerradioselected()" /&gt;
  </code></pre>