Hello, in this jQuery video I am going to show you how to select an element to the mirror of your select and then based on class based on element name, or some other parameter, you can use this feature with it allows you to select just the first one. So if he's a selector, you get more than one, you know, returned back so in this case, we've got a pick class and epic class allows us to be able to essentially add all of these classes we just got to classes and we can you know, when we click on it, it prints it out. So if we only want to apply to the first one, all we have to do is put colon first. save that and now if we reload, click on that you work click on that it does not work. It is only applied to The first one, even though this, it doesn't matter what the element type is, because he has, you know, a class you could do based on the name of the element, you can do that as well.
You can combine it with that or other selector types. But because we put colon First, the first one that actually appears in the DOM in the body is the one that this code is assigned to. And that's it. That's how you select the first element that they guarantee that the first element is selected when applying some sort of jQuery code. It could be click or it could be something else. That's it.
Thanks for watching, and I look forward to seeing you in the next video.