Hello, in this jQuery video I am going to cover the selector which allows you to select an element if it contains, you know, a particular you know piece of text. So first of all let's just create some paragraphs for example, they could be dead it could be whatever you want to say. Hello, we'll create a new one. On you different ones. And this is gonna say, my I'm going to say which I currently do. Oh, and Batman which is also legitimately true Okay, so now let's show you how to select, you know, based on what text it contains.
So the first one put the dollar. And first you put the type of or the name of the element so P for paragraph, then you put Cola, paint. And in here you where you put the text I find is put the letter for the North, for example. Okay, click. And actually, no one's gonna change the CSS. Don't worry if you don't understand any of this part yet.
Clogger separate video covering how to modify the CSS I just wanted to know the very opposite, don't have a few different selectors based on what text it contains. Some say dot CSS and I'm going to say hello is read Should the yellow format for reload it to what we get? So these are yellow because they contain the letter I. This doesn't? Actually it does, but it has to be the lowercase. It is case sensitive for reload nights only this one soft, soft bear in mind.
Okay, just do it based on one character. So if I duplicate this one, and let's say if I say anything with my, to my, I'm going to change maybe the justice, the color of the font color changes to red. So these two should be read now the actual font color should be there we go. And that's it. That's how you select something based on the content, the string, the value that it contained that very simple. If you have any questions Feel free to drop me a message and usual I look forward to seeing you in the next video.