title: Need to call a JavaScript function with Radio button onclick in JSF
body: <p>I have a JavaScript function defined in a file Common.js named showSearchAccount() which show a pop-up when called. I have also defined two radio buttons in a xhtml file as;</p>
  
  <pre><code> &lt;h:selectOneRadio value="#{userData.data}"&gt;
              &lt;f:selectItem itemValue="Yes" itemLabel="Yes" /&gt;
              &lt;f:selectItem itemValue="No" itemLabel="No" /&gt;
   &lt;/h:selectOneRadio&gt;
  </code></pre>
  
  <p>I need the pop-up to apper when i click on yes radio button, but if I put <em>onclick</em> or <em>onchnage</em> inside the 1st <em>selectItem</em> tag the popup is not appearing. If I put the <em>onclick</em> in <em>selectOneRadio</em> tag it is working, but it gets enabled for both i.e Yes and No. </p>
  
  <p>I have tried this thing with plain html and it works like charm. But I need to it work with JSF. Could anyone please help.</p>