【发布时间】:2019-05-14 06:12:35
【问题描述】:
我在 ASP.net ascx 页面中有如下文本框
<input type="text" maxlength="200" runat="server" id="txt_OTP" />
我想在 jquery 中获取文本框输入值(在同一个 ascx 页面中) 但 .value 或 .text 函数不可用
jquery 代码:
document.getElementById('OTPvalidation1_txt_OTP').Value
此处 ID 正确,但 .Value 或 .text 功能在 ascx 页面中不可用。ascx 页面中是否有任何替代关键字??
【问题讨论】: