最近做一个JS,比如这样.页面没有问题.
<asp:TextBox ID="txtAmountCharged" Runat="server" onBlur="checktxtL(this);"></asp:TextBox>
当我添加2个事件的时候
<asp:TextBox ID="txtAmountCharged" Runat="server"
OnTextChanged="IsNumeric(this);" onBlur="checktxtL(this);"></asp:TextBox>
这2个JS函数是没有问题的.但是总是报错误,说当前页面不存在IsNumeric这个成员!我无语了.
<asp:TextBox ID="txtAmountCharged" Runat="server" onBlur="checktxtL(this);"></asp:TextBox>
当我添加2个事件的时候
<asp:TextBox ID="txtAmountCharged" Runat="server"
OnTextChanged="IsNumeric(this);" onBlur="checktxtL(this);"></asp:TextBox>
这2个JS函数是没有问题的.但是总是报错误,说当前页面不存在IsNumeric这个成员!我无语了.
或者引入含有这两个函数的JS文件
或者试一下OnTextChanged="javascript:functionname();"