问题描述
functionloadgrid(){currentIndex="0";varcolumns=[[//列表中展示的列{field:'ProjectType',title:'项目类别',width:150,align:'center',formatter:function(value,rowData,rowIndex){returnGetTypeName(rowData.ProjectType);}},{field:'ProjectName',title:'项目名称',width:200,align:'center'},{field:'FullName',title:'申请立项等级',width:200,align:'center'},{field:'ProjectID',title:'可行性报告',width:60,align:'center',sortable:true,formatter:function(value,rowData,rowIndex){returnGetAttach(rowData.ProjectID);}},{field:'act',title:'评分意见',width:400,align:'center',formatter:function(value,rowData,rowIndex){vare='<inputclass="SmallInput"style="width:95%"id="txt_'+rowIndex+'"value="'+rowData.ScoreDesc+'"ondblclick="ScoreDesc(''+rowIndex+'')"title="请双击填写评分意见"/> ';returne;}},{field:'act1',title:'评审立项意见',width:100,align:'center',formatter:function(value,rowData,rowIndex){vare='<selectid="ddl_APPType'+rowIndex+'"onchange="ScoreAppDesc(''+rowIndex+'')"><optionvalue="">请选择</option><optionvalue="'+item1V+'">'+item1T+'</option><optionvalue="'+item2V+'">'+item2T+'</option><optionvalue="'+item3V+'">'+item3T+'</option></select>';returne;}}]];comboboxselect("ddl_ProjectType",$("#HidProjectType").val());varType=$("#ddl_ProjectType").combobox('getValues')+"";varpms={sortName:"",sortOrder:"",ScoreID:ScoreID,ProjectType:Type,ProjectName:$("#txtProjectName").val(),AutoSearch:$.trim($("#txtAutoSearch").val())};loaddata('tt','DataAjaxMore.ashx',pms,true,true,columns,pageindex,pagesize);SetMainStyle('dataMain','tt');}这个是easyUI的gird里写了个下拉然后我想用隐藏域来传值<inputtype="hidden"id="HidAPPTypeID0"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID1"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID2"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID3"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID4"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID5"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID6"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID7"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID8"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID9"runat="server"value=""/><inputtype="hidden"id="HidAPPTypeID10"runat="server"value=""/>
解决方案
解决方案二:
$(function(){loadgrid();vari=0;for(vari=0;document.getElementById("HidAPPTypeID"+i).value!="";i++){/*alert('666');varobj=document.getElementById("ddl_APPType"+i);alert('666');varvv=document.getElementById("HidAPPTypeID"+i).value;alert(vv);obj.value=vv;//document.getElementById("ddl_APPType"+i).options[document.getElementById("ddl_APPType"+i).selectedIndex].value=document.getElementById("HidAPPTypeID"+i).value;alert('666');*/alert(document.getElementById("HidAPPTypeID"+i).value);varobj=document.getElementById("ddl_APPType"+i);//alert('666');//$("#ddl_APPType"+i).val(document.getElementById("HidAPPTypeID"+i).value);//obj.selectedIndex=2;//alert('666');for(a=0;a<2;a++){alert();if(obj.options[a].value=document.getElementById("HidAPPTypeID"+i).value){alert();obj.options[a].selected=true;}}}});这些是我试过的方法都木有用...
解决方案三:
真的很急啊求大神~~~~~~~~~~做不出要被开啦