An Intro to jQuery
document.getElementById("demo").innerHTML = "Hello, World!";
How to add jQuery to a web project
- Downloada local copy.
- Link to a file via Content Delivery Network (CDN).
HTML structure and save it as index.html.
<!doctype html> <html lang="en"> <head> <title>jQuery Demo</title> </head> <body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script> //write your query code here </script> </body> </html>