dcsimg
Java Script Working in IE but not in Mozilla firefox
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   deepthi_v
Posted On:   Thursday, September 15, 2011 05:07 AM

I have yes and no radio buttons in a page and on click of yes radio button for the first time , some fields are rendering and on click of no it will be hidden ,so all this functioning fine for the first time, but second time when i click on yes radio button content is not rendering. and the main thing is that the above is working fine in ie but not in mozilla. Please help me ... Thanks in advance. Java script code is as below function ownerTypeChanged1() { alert('ownerTypeChanged1'); var ownerTypeVal='-1'; var ownerTypeObj=document.getElementsByName(ownerTypeIdMD); alert('ownerTypeObj-->>>'+ownerTypeObj); alert('ownerTypeObj    More>>

I have yes and no radio buttons in a page and on click of yes radio button for the first time , some fields are rendering and on click of no it will be hidden ,so all this functioning fine for the first time, but second time
when i click on yes radio button content is not rendering.

and the main thing is that the above is working fine in ie but not in mozilla.

Please help me ...
Thanks in advance.





Java script code is as below
function ownerTypeChanged1()
{
alert('ownerTypeChanged1');
var ownerTypeVal='-1';
var ownerTypeObj=document.getElementsByName(ownerTypeIdMD);
alert('ownerTypeObj-->>>'+ownerTypeObj);
alert('ownerTypeObj length---->>'+ownerTypeObj.length);
for(var x =0; x < ownerTypeObj.length; x++)
{
alert('in the for loop');
if(ownerTypeObj[x].checked)
{
ownerTypeVal=ownerTypeObj[x].value;
}








and the jsp div is below.



value="#{groupPrvDataBean.provider.managingDirector.managingDirectingIndicator}"
onclick="flagWarn=false;ownerTypeChanged1();">

itemLabel="#{prvmsg['label-provider-yes']}" />

itemLabel="#{prvmsg['label-provider-no']}" />



   <<Less
About | Sitemap | Contact