嗨,我正在尝试设置 @Html.EditorFor 的值?
这是我的编辑器:
@Html.EditorFor(model => model.Customer.CustomerName)
这是我尝试设置它的方式:
document.getElementById("CustomerName").value = UserInfo.CustomerName;
我收到错误消息,无法调用未定义的方法 getElementById。
嗨,我正在尝试设置 @Html.EditorFor 的值?
这是我的编辑器:
@Html.EditorFor(model => model.Customer.CustomerName)
这是我尝试设置它的方式:
document.getElementById("CustomerName").value = UserInfo.CustomerName;
我收到错误消息,无法调用未定义的方法 getElementById。