IE8 Javascript Error
<p>I have written a js method which runs perfectly on FF.
This js method is called on the click of a radio button.</p>

<p>In IE, when I click the radio button, the js method is called only when I click somewhere on the form. I have no idea about this strange behavious in IE.</p>

<p>Any ideas?</p>

<p>Thx</p>

<hr>

<p>Here is my code.</p>

<pre><code>xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
</code></pre>

<p>HTML CODE:</p>

<pre><code>&lt;h:selectOneRadio  id="pid" value="#{Bean.pid}" onchange="javascript:checkPid();"&gt;    
&lt;f:selectItem itemLabel="label1" itemValue="value1"/&gt; 
&lt;f:selectItem itemLabel="label2" itemValue="value2" /&gt; 
&lt;f:selectItem itemLabel="label3" itemValue="value3" /&gt; 
&lt;/h:selectOneRadio&gt;
</code></pre>

<p>JAVASCRIPT:</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;

function checkPid() {
   //some basic js here
   //even if I just give an one-liner alert stmt here, In IE it 
   //shows up only when I click somewhere on the form after I click 
   //on the radio button
}
</code></pre>

<p>Thanks in advance!</p>
