Module 6 - Lesson 2
jQuery Syntax
Lesson Overview
In this lesson, I will give you an overview of the basic jQuery syntax, which is very simple and uses some elements directly from CSS, which makes it even easier to use.
Video Chapters
jQuery document.ready function syntax:
jQuery(document).ready(function($){
// your jQuery goes here
});
Shorthand version:
$(function () {
// your jQuery goes here
});
Sample jQuery functions:
$('#box').hide();
$('.circle').fadeOut();
$('h1').css('color','red');
$('button').click(function(){
$('.circle').fadeOut(1000);
});
Login to your Account
If you're a DSA Student, please log in to your account to access the course content.
Sorry, you don't have access to this content.
It looks like you're not enrolled in Divi Stylist Academy.
