鉴于此 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”