js:
${BindComplaintType}
  ${BindReReason}
  function select(sltName,value){
   $("select[@name="+sltName+"] option").each(function(){
   if($(this).val() == value){
   $(this).attr("selected","selected");
   }
   });
  }

后台.cs
string strJS = "select('select','" + h["ComplaintType"].ToString() + "');";
mVh.Put("BindComplaintType", strJS);
string strJS1 = "select('select2','" + h["ReReason"].ToString() + "');";
mVh.Put("BindReReason", strJS1);//Return Reason
js:
${BindComplaintType}
  ${BindReReason}
  function select(sltName,value){
   $("select[@name="+sltName+"] option").each(function(){
   if($(this).val() == value){
   $(this).attr("selected","selected");
   }
   });
  }

后台.cs
string strJS = "select('select','" + h["ComplaintType"].ToString() + "');";
mVh.Put("BindComplaintType", strJS);
string strJS1 = "select('select2','" + h["ReReason"].ToString() + "');";
mVh.Put("BindReReason", strJS1);//Return Reason

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2021-12-19
  • 2021-06-28
  • 2021-12-26
  • 2022-12-23
  • 2022-02-09
  • 2021-09-25
猜你喜欢
  • 2021-11-09
  • 2021-06-21
  • 2021-08-19
  • 2022-02-05
  • 2021-10-16
相关资源
相似解决方案