Jquery & others
//we can use the downloaded .js file library as SRC and then just add the script.js file
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="./script.js"></script>
</head>
//First we need to load the page for most
$(document).ready(function(){} )
//or
$(fucntion(){
})
//the syntax we can have
$(selector).action()
//$ to access the jquery
//we QUERY(selct) with the () using CSS selectors
//then .action
//for example we can select DOM elements variables
let sel = $(“h2”)
let sel = document.querySelector("h2")
Last updated