Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
We are getting to the point in the course now where we are going to start doing some much more powerful jQuery coding and before we do that, I want to point out one of jQuery's most powerful features and that is its ability to chain multiple functions together and this basically allows you to perform several operations in just one line of code. jQuery terminology calls this statements chaining and you can see an example there on the screen. So, this is a selector in jQuery just like I have been writing up until now and what I have got here on the end is a dot and then a series of functions.
These functions will get executed in order, starting here on the left and going across to the right. So, you can imagine that the selector will execute. It will come back with a result set of elements in the web page and then I can do multiple operations on those guys. I can assign CSS. I can manipulate the content. I can turn events on and off, that kind of thing. And the reason why this makes jQuery so powerful is that it allows you to perform multiple operations on one result set without having to get that result set over and over and over again, like you might have to do in other scripting conventions.
So, we will see this later on in the course a lot more often, but I wanted to call it to your attention so that you know what it is when you see it. And again, this is one of the things about jQuery that just makes it powerful. It's that you can assign the result set to be operated on by multiple functions. All in one line of code. And again, we will see this later on but I just wanted to call this out, so that when you see it, you know what it is. Okay. So, let's move on to building a practical example using what we have learned so far and the example that we are going to build is annotating some page links in a webpage.
Let's take a look at how that works.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 99890 Viewers
56 Video lessons · 113005 Viewers
71 Video lessons · 81836 Viewers
131 Video lessons · 39273 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.