Microsoft JScript runtime error: Object doesn't support property or method 'validate'

后端 未结 2 1095
你的背包
你的背包 2021-01-29 05:16

This issue is that i am getting the error, Microsoft JScript runtime error: Object doesn\'t support property or method \'validate\'. Couldn\'t figure out why. Any suggestions?

相关标签:
2条回答
  • 2021-01-29 05:43

    If using Visual Studio the simplest way is to use the NuGet extension to download jQuery. If you don't have it you can find it at www.codeplex.com and install it. Then go to Tools -> Library Package Manager -> Manage NuGet Packages within Visual Studio and search for jQuery. Once this is installed, the Script folder within your project will have the required files.

    Modify the path within your view.cshtml file to point to the current version of jQuery e.g 1.7.1 in this case

    0 讨论(0)
  • 2021-01-29 05:50

    There is no built-in jQuery function named validate. It's available from several plugins though. For example

    • http://docs.jquery.com/Plugins/Validation

    Have you properly included the plugin's in your page?

    0 讨论(0)
提交回复
热议问题