Hi All,
I am facing a issue in which i want to set value for selectonemenu by using document.getElementById().
The below code executes when printpreview link is clicked.
Issue: The value selected in the dropdown in main page is not same as thatof print previewpage. Instead in the print preview page the drop down is displaying defaut value .
This is only happening in IE9/10.


function settingParameters(){
//In below code I am trying to get the value for the item being selected in selectonemenu1.

[CODE]
valueOfTable1=document.getElementById("view<portlet:namespace/>form1:table1"+i+":selectonemenu1").value;
[CODE]

//In below code I am trying to set the value of selectonemenu2 with the values of selectonemenu1.
[CODE]
document.getElementById("view<portlet:namespace/>:form2:table2:"+i+":selectonemenu2").value=valueOfTable1;
[CODE]

}

Please let me know if anyone had faced such isue and how to resolve the same.
Thanks in advance.
Regards,
Partho