Jquery validation plugin - TypeError: $(…).validate is not a function

后端 未结 8 1130
不知归路
不知归路 2020-12-01 08:45

My script throw errors:

TypeError: jQuery.validator is undefined additional-methods.js:20 TypeError: $(...).validate is not a function index.php:115

8条回答
  •  没有蜡笔的小新
    2020-12-01 09:28

    You're not loading the validation plugin. You need:

    
    

    Put this before the line that loads the additional methods.

    Also, you should get the additional methods from the CDN as well, rather than jquery.bassistance.de.

    Other errors:

    [4.20]
    

    should be

    [4,20]
    

    and

    rangelenght:
    

    should be:

    rangelength:
    

提交回复
热议问题