All right.
So let's go ahead and take a look at some advanced filters here using Jay query.
Sorry not got aged a very basic script going on here.
Everything's been the same.
I'm still thinking that my J.Crew file here still start out with my document ready function and in here
i'm just go ahead and went ahead and set up a basic line right here that same going to add some CSSA
the border one pixel Solander read to whatever I want to do.
So here's where I want to put in some different filters.
And here's also where we need to make sure that you have a good understanding of your CSSA.
Just because this will be going into some more or relating to some of the advanced CSSA functions but
we're going to be accessing it through a query.
So it's going to take a look at the first one we all.
We've worked with the time before but we can also add and Depay and the colon and we can say something
like.
First child I spell that right it would work.
First child that's going to say the first paragraph together the first child is going to give it this
border of one pixel Red Square and save that.
I grab my files here and then find filters three.
So this is the first child of the paragraph tag which is all of that
now and I can also do is say
last
time I can select the last paragraph of the type of letters or a paragraph so they have done in the
body here so that I hit refresh.
Now we're selecting just the last of its type.
So there could be 50 different paragraphs here.
It's only selecting the last of its type the paragraph types.
So we could also do this one is kind of cool where it can actually help you.
In searching for something on the page may have maybe a lot of pages or it can be just little four paragraphs
of one or two sentences here.
You may have hundreds and hundreds of sentences or hundreds of paragraphs or whatever it is and this
can be throughout the entire slightness not just one page but what you can do is you could say P. paragraph
contains and then open up the parentheses.
Open up a single quote and then between those two single quotes I can put a word that I'm looking for.
So let's say it was maybe long.
That's Go ahead make sure.
As I say I can see it got Lorem in my paragraph here so I can be looking for that word somewhere within
my document.
So go ahead save comeback and hit refresh up here.
All right.
Looks like I get contains all that right Comite my document.
OK so every paragraph every paragraph that contains the word larm to give this order to.
So it's kind of an easy way to find something specific.
I'd say we went ahead and in the third paragraph said equerries let's change this word appeared to J-20
and save the hen.
Now I come back to my document refresh and see it's just highlighting the one paragraph that has the
word Gigue query in it so it can be a very easy way to do to kind of create a visual search function
for you within your document.
One of the last ones I want to take a look at here.
When get rid of eristic with a paragraph tag right now almost say parent the parent.
Now you know what let's go.
Yeah all right we can do that.
We'll start with that.
So you can say the parent paragraph will save and come back you're not going to select each of these
because each of these is actually a parent of itself.
So there's really no children of this just showing you that that is something you can do it is something
within CSSA you could do it another one you could do.
This is more of the one I was thinking of as the end child.
And we can say which one of the child we can say that and come back here you can see it's now slicking
the third paragraph so saying a third paragraph or third paragraph within the paragraphs here within
my document.
And third one were to give that border to soak in understanding these filters within Jay cories me very
helpful in doing a lot of things within your document finding things highlighting things or just accessing
things on the fly.