【发布时间】:2012-09-06 02:42:29
【问题描述】:
给定这个 HTML 使用 jQuery 验证
<input id="accept-terms" type="checkbox" class="required"/>
<label for="accept-terms"> I accept the <asp:HyperLink ID="termsLink" runat="server" Target="_blank">terms and condtions</asp:HyperLink> of sale.</label>
<label for="accept-terms" class="error-text">You must accept the terms and conditions before purchasing</label>
我收到此错误:
未捕获的类型错误:无法调用未定义的方法“getAttribute”
【问题讨论】:
标签: jquery html forms jquery-validate