Learning materials about some cool frameworks like Node.js, jQuery, and others.
introduction • table of contents • Download • Related • License
In the context of web development, I have studied frameworks. This file encompasses various libraries such as Node.js, jQuery, providing swift speed for a website. This resource serves as a guide for utilizing these framework libraries.
JQuery
- introduction
- jQuery is a nimble and lightweight JavaScript library crafted to streamline HTML manipulation, animation, event handling, and document interaction.
- Install JQuery with CDN
- One of the easiest ways to install jQuery is by using a CDN. Add the following script in the of your HTML:
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
- One of the easiest ways to install jQuery is by using a CDN. Add the following script in the of your HTML:
- Install JQuery with Local Storage
- Download jQuery from the official website.
- Copy the jQuery file (usually named jquery-x.x.x.min.js) to your project folder.
- Add the following script in the of your HTML:
<script src="path/to/jquery-x.x.x.min.js"></script>
- Install JQuery with NPM or YARN
- If you are using Node.js and npm or Yarn as your package manager, you can install jQuery through the terminal:
# Using npm npm install jquery # Using Yarn yarn add jquery
- After installation, you can import jQuery in your JavaScript file:
import $ from 'jquery';
- If you are using Node.js and npm or Yarn as your package manager, you can install jQuery through the terminal:
- Implementation examples
- Without jQuery
document.getElementById('hideButton').addEventListener('click', function() { document.getElementById('myElement').style.display = 'none'; });
- with jQuery
$(document).ready(function() { $('#hideButton').click(function() { $('#myElement').hide(); }); });
- Without jQuery
- Open a terminal or command prompt on your computer.
- Navigate to the directory where you want to save this project.
- Use the following command to download the project from the GitHub repository:
git clone https://github.com/ariafatah0711/framework_aria.git