jQuery First Steps
jQuery First Steps
Introduction
Hello,
To use the JQuery library, we first need to add it to the HTML document.
In the example below, the address of the jQuery library has been added as the value of the src attribute between the head tags.
Now jQuery library is ready to be used in our project.
<html>
<head>
<script src="https://code.jquery.com/jquery-3.5.1.slim.js"></script>
</head>
<body>
</body>
</html>Jquery Select
In order to operate on HTML elements (we will now call it DOM), we first need to select the element.
In jQuery, $() or jQuery() method is used to make a selection.
The $() method is more preferred by software developers.
With the parameter that we will assign to this method, we decide which element we want to select.