Getting ready


show more Getting ready provides you with in-depth training on Web. Taught by Joe Chellman as part of the jQuery for Web Designers show less
please wait ...

Getting ready

In this movie we're going to take a look at jQuery and how to actually get ready to do things with your DOM. So here is a very simple page which has basically nothing on it except jQuery being referenced here, and now a script tag where I can put my own JavaScript. So jQuery usually is referenced via the dollar sign. You can also reference it by jQuery spelled this way. And jQuery's primary purpose is to query elements of the DOM and then start doing things to them. And the way that works is by using this. It's a function and then you can select stuff in here, which we'll go over later.

But before you can actually do anything to the DOM it needs to be fully loaded. And when were working in Vanilla JavaScript we can use the load event or the DOM content loaded event something like that. But jQuery provides a canonical way of making sure that the DOM is ready to do stuff and oddly enough that method is called Ready. So here's how this works. We put the dollar sign, which is the jQue...

Getting ready
Video duration: 2m 26s 1h 42m Intermediate

Viewers:

Getting ready provides you with in-depth training on Web. Taught by Joe Chellman as part of the jQuery for Web Designers

Subject:
Web
Software:
jQuery
Author:
please wait ...