Adding jQuery to your web site:
If you are building asp.net application, the moment you create web project, jquery library gets added to web project by default (all new SDK has this type of jquery library added with their project template) , you also can manually add jquery library to your project.
There are two ways to start using jQuery
<head> <script src="Scripts/jquery-3.3.1.min.js"></script> </head>
If you are using Jquery in Asp.Net application, you can add Jquery files using nugget manager as shown below.
bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include( "~/Scripts/jquery-ui-{version}.js")); bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*"));
install the latest version of jQuery with the npm CLI command.
install the latest version of jQuery with the Bower command.
Once setup done, let's understand how jQuery works.