更新数据前jquery如何填充数据到表单域中

$("#p_city option[value=‘${project.city}‘]").attr("selected","selected");
$("#p_projectType option[value=‘${project.projectType}‘]").attr("selected","selected");
$("#p_voltageLevels option[value=‘${project.voltageLevels}‘]").attr("selected","selected");
$("#p_successfulSupervisionUnits option[value=‘${project.successfulSupervisionUnits}‘]").attr("selected","selected");
$("#currentProgress option[value=‘${project.currentProgress}‘]").attr("selected","selected");
            
$("input[name=‘project.whetherExcellence‘][value=‘${project.whetherExcellence}‘]").attr("checked",true);
$("input[name=‘project.whetherCreatingMobileRed‘][value=‘${project.whetherCreatingMobileRed}‘]").attr("checked",true);
$("input[name=‘project.whetherDemonstrationProject‘][value=‘${project.whetherDemonstrationProject}‘]").attr("checked",true);
$("input[name=‘project.peakSummerProject‘][value=‘${project.peakSummerProject}‘]").attr("checked",true);
$("input[name=‘project.whetherContractTermination‘][value=‘${project.whetherContractTermination}‘]").attr("checked",true);
$("input[name=‘project.threeRisk‘][value=‘${project.threeRisk}‘]").attr("checked",true);
$("input[name=‘project.fourRisk‘][value=‘${project.fourRisk}‘]").attr("checked",true);
                
$("#planStart").datepicker();
$("#planEnd").datepicker();
$("#actualStart").datepicker();
$("#completedProfileDeliverDate").datepicker();
$("#contractStartTime").datepicker();
$("#provincialCompanyStartTime").datepicker();
$("#controlnd").datepicker();
$("#controlStart").datepicker();

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。