Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 3150 online users. » 0 Member(s) | 3148 Guest(s) Bing, Yandex
|
Latest Threads |
SELECT statement with MS ...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:35 PM
» Replies: 0
» Views: 1,345
|
SELECT statement with the...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:31 PM
» Replies: 0
» Views: 748
|
Creating hyperlinks in HT...
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 01:23 PM
» Replies: 0
» Views: 1,102
|
What's new in HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:48 PM
» Replies: 0
» Views: 804
|
What is HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:43 PM
» Replies: 0
» Views: 724
|
Neck isometric exercises
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:44 AM
» Replies: 0
» Views: 1,040
|
Shoulder shrug
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 655
|
Neck retraction
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 632
|
Neck flexion and extensio...
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 727
|
Neck rotation
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 683
|
|
|
Get Started with JQuery |
Posted by: Derp - 09-10-2020, 01:37 PM - Forum: JavaScript Tutorials
- No Replies
|
 |
jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax. It is free, open-source software using the permissive MIT License. As of May 2019, jQuery is used by 73% of the 10 million most popular websites. Web analysis indicates that it is the most widely deployed JavaScript library by a large margin, having 3 to 4 times more usage than any other JavaScript library
to add JQuery to your html you have 2 options
1)- CDN way
which your JQuery will be online updated whenever there is new version
go to https://code.jquery.com/ and choose your version and its recommended to pick the minified
then copy the code it shows and paste after the <title> your website title</title>
2)- Offline way
you just have to go to https://jquery.com/ and click download , its recommended to get the compressed version for productivity sake
then copy it to your project and i will assume you put it in the root folder of the project
add the following after the title tags
Code: <script src="jquery-3.5.1.min.js"></script>
if you are from the future the JQuery version will be newer than the one in the example code put it instead
for the Derp Blog project i have used the CDN and the codes in script.js
now if you do the same add the script.js after the JQuery so it will look a like that
Code: <script src="jquery-3.5.1.min.js"></script>
<script src="script.js"></script>
and both after the title tags
now to the JQuery codes
when you do that you should tell to JQuery to load your codes after the page is loaded with that code
Code: $(document).ready(function(){
your codes here
});
|
|
|
|