Performing multiple operations on the same line with chaining


show more Performing multiple operations on the same line with chaining provides you with in-depth training on Web. Taught by Joe Chellman as part of the jQuery for Web Designers show less
please wait ...

Performing multiple operations on the same line with chaining

In this movie we're going to look at chaining, which is a way of writing your Query. That's something you'll see all the time in other people's code and something that you will, no doubt, use a lot in your own as well. So, we're looking at this page from the Hansel and Petal website. This the build a bouquet page. If I reload it you can see nothing is happening when I first load the page. I'm looking at the file over here. This is the very bottom of the file where the script tags are, and I have some code here commented out, so it doesn't actually do anything. I have my jQuery ready, but it doesn't do anything, because all of this is commented out.

So let's remove those comments. This code will actually do something when the page loads. I'm going to save this, come back over here and reload. You can see the jQuery is doing some stuff to these elements. So let's look back at the code and kind of take it apart and see what's happening here. And then we'll...

Performing multiple operations on the same line with chaining
Video duration: 2m 30s 1h 42m Intermediate

Viewers:

Performing multiple operations on the same line with chaining 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 ...