给定这个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>
我得到这个错误:
Uncaught TypeError: Cannot call method 'getAttribute' of undefined