1 00:00:05,900 --> 00:00:06,100 All right. 2 00:00:06,100 --> 00:00:11,310 So let's go ahead and take a look at some advanced filters here using Jay query. 3 00:00:11,390 --> 00:00:14,180 Sorry not got aged a very basic script going on here. 4 00:00:14,180 --> 00:00:15,780 Everything's been the same. 5 00:00:15,780 --> 00:00:20,780 I'm still thinking that my J.Crew file here still start out with my document ready function and in here 6 00:00:20,780 --> 00:00:26,760 i'm just go ahead and went ahead and set up a basic line right here that same going to add some CSSA 7 00:00:26,780 --> 00:00:30,530 the border one pixel Solander read to whatever I want to do. 8 00:00:30,530 --> 00:00:32,770 So here's where I want to put in some different filters. 9 00:00:32,930 --> 00:00:37,100 And here's also where we need to make sure that you have a good understanding of your CSSA. 10 00:00:37,490 --> 00:00:42,980 Just because this will be going into some more or relating to some of the advanced CSSA functions but 11 00:00:42,980 --> 00:00:45,550 we're going to be accessing it through a query. 12 00:00:45,680 --> 00:00:47,360 So it's going to take a look at the first one we all. 13 00:00:47,410 --> 00:00:53,450 We've worked with the time before but we can also add and Depay and the colon and we can say something 14 00:00:53,450 --> 00:00:54,200 like. 15 00:00:54,350 --> 00:00:59,530 First child I spell that right it would work. 16 00:00:59,530 --> 00:01:04,480 First child that's going to say the first paragraph together the first child is going to give it this 17 00:01:04,480 --> 00:01:08,160 border of one pixel Red Square and save that. 18 00:01:08,170 --> 00:01:13,720 I grab my files here and then find filters three. 19 00:01:13,770 --> 00:01:18,170 So this is the first child of the paragraph tag which is all of that 20 00:01:21,400 --> 00:01:23,500 now and I can also do is say 21 00:01:26,710 --> 00:01:27,460 last 22 00:01:31,090 --> 00:01:38,230 time I can select the last paragraph of the type of letters or a paragraph so they have done in the 23 00:01:38,230 --> 00:01:41,260 body here so that I hit refresh. 24 00:01:41,260 --> 00:01:43,420 Now we're selecting just the last of its type. 25 00:01:43,420 --> 00:01:45,760 So there could be 50 different paragraphs here. 26 00:01:45,760 --> 00:01:49,500 It's only selecting the last of its type the paragraph types. 27 00:01:50,900 --> 00:01:54,440 So we could also do this one is kind of cool where it can actually help you. 28 00:01:54,470 --> 00:01:59,480 In searching for something on the page may have maybe a lot of pages or it can be just little four paragraphs 29 00:01:59,480 --> 00:02:01,660 of one or two sentences here. 30 00:02:01,790 --> 00:02:07,930 You may have hundreds and hundreds of sentences or hundreds of paragraphs or whatever it is and this 31 00:02:07,940 --> 00:02:16,340 can be throughout the entire slightness not just one page but what you can do is you could say P. paragraph 32 00:02:18,670 --> 00:02:23,060 contains and then open up the parentheses. 33 00:02:23,110 --> 00:02:27,750 Open up a single quote and then between those two single quotes I can put a word that I'm looking for. 34 00:02:27,750 --> 00:02:30,380 So let's say it was maybe long. 35 00:02:30,460 --> 00:02:31,550 That's Go ahead make sure. 36 00:02:31,570 --> 00:02:39,460 As I say I can see it got Lorem in my paragraph here so I can be looking for that word somewhere within 37 00:02:39,460 --> 00:02:40,610 my document. 38 00:02:40,670 --> 00:02:44,140 So go ahead save comeback and hit refresh up here. 39 00:02:44,980 --> 00:02:45,250 All right. 40 00:02:45,250 --> 00:02:51,830 Looks like I get contains all that right Comite my document. 41 00:02:51,830 --> 00:02:58,450 OK so every paragraph every paragraph that contains the word larm to give this order to. 42 00:02:58,660 --> 00:03:00,980 So it's kind of an easy way to find something specific. 43 00:03:01,010 --> 00:03:08,820 I'd say we went ahead and in the third paragraph said equerries let's change this word appeared to J-20 44 00:03:10,100 --> 00:03:12,000 and save the hen. 45 00:03:12,020 --> 00:03:16,580 Now I come back to my document refresh and see it's just highlighting the one paragraph that has the 46 00:03:16,580 --> 00:03:22,820 word Gigue query in it so it can be a very easy way to do to kind of create a visual search function 47 00:03:22,820 --> 00:03:24,530 for you within your document. 48 00:03:25,630 --> 00:03:29,010 One of the last ones I want to take a look at here. 49 00:03:29,170 --> 00:03:36,410 When get rid of eristic with a paragraph tag right now almost say parent the parent. 50 00:03:36,460 --> 00:03:37,800 Now you know what let's go. 51 00:03:37,940 --> 00:03:38,980 Yeah all right we can do that. 52 00:03:38,980 --> 00:03:40,050 We'll start with that. 53 00:03:40,480 --> 00:03:46,900 So you can say the parent paragraph will save and come back you're not going to select each of these 54 00:03:46,900 --> 00:03:49,670 because each of these is actually a parent of itself. 55 00:03:49,840 --> 00:03:54,790 So there's really no children of this just showing you that that is something you can do it is something 56 00:03:54,790 --> 00:03:58,680 within CSSA you could do it another one you could do. 57 00:03:58,840 --> 00:04:02,920 This is more of the one I was thinking of as the end child. 58 00:04:03,370 --> 00:04:10,750 And we can say which one of the child we can say that and come back here you can see it's now slicking 59 00:04:10,750 --> 00:04:17,580 the third paragraph so saying a third paragraph or third paragraph within the paragraphs here within 60 00:04:17,590 --> 00:04:18,950 my document. 61 00:04:19,000 --> 00:04:24,700 And third one were to give that border to soak in understanding these filters within Jay cories me very 62 00:04:24,700 --> 00:04:31,180 helpful in doing a lot of things within your document finding things highlighting things or just accessing 63 00:04:31,180 --> 00:04:32,290 things on the fly.