All right Mr. inquiry less than what we're going to do and is creating copy on our Web page and be inserting
it through a query and all this kind of stuff we've done before.
If you don't remember go back through some of my old videos concerning the Jake and how to do this stuff
I just want to be this one up a little bit.
You know just watching you type the whole time what I've done is created a document and we have our
basic Aquarion that we always link to the basic opening document ready function which we always use.
And then in my body area here within the body of the page I've created three links one that says Create
ones is create text.
One says create text but with different IDs.
The ideas is what we will be targeting from the J-20 get create create text and create variable.
So all that I have done here targeting these three paragraphs is what we'll be using and all within
the idea of container.
So we're going to kind of speed this up a little bit here.
Those already set up in there and within the document area of mind Jake we're going to go and paste
in the first code that I pre-Roe.
And again this last I've done before so if you don't remember check out some of my other Jake Query
videos that we've gone through.
And so what we're doing is you can see we've got create text that is going to be what we're targeting
is the idea here and create text and we get something of a click function so it's an event here so that
when somebody clicks on it we're going to target the container.
The container I.D. right here and the paragraph of last which is going to the last paragraph within
here and we're going to replace it with this text right here.
So you get it done this in previous videos if you'd have any issues remembering some of that stuff Colback
through those.
But this should be nothing new it's been going through a bit faster here.
I'm going to say this Dykeman as does create mass save it going to go find it here and open it up in
my browser and I can say click on Create text and you can see the third paragraph just got replaced.
There is that third paragraph right there was just created.
Now it's got those paragraph tags around it because it is using it's actually taken everything that's
in these quote marks right here and placing it in there.
So I delete those and save it and come back and refresh and click on and create text message replace
just that text right there.
So that may be useful for something like a form where once you submitted it it's replaced in some tasks
it says you know thank you for submitting this form or something like that.
There are uses for that.
That's when.
Take a look at the other one that we have set up down there
myself.
Copy that code and going to go ahead and replace that paper I thought I had there before.
This would be very similar to what we've done before but this time we're using a variable.
So this way we're setting up our Jake Query creates variables.
This will be the third button down here that I have set up another event that's as I click Create this
function recreate his variable of new text and within the container.
The first paragraph is what we are going to be targeting.
And the container last with each Jamail new text right there.
So I've got it in there and what I want to do is just so we can see what it got him Hengist number these
paragraphs.
Call them number one number two and number three.
Now now actually placing copy and actually getting rid of it by doing this this way.
So I say this when it come back to my document refresh and I can see I've got paragraphs 1 2 and 3.
Now if I click on Create text 3.
All right.
The third button there we've just removed three the a third of Paris and starting this the last paragraph
there.
So I think kind of see the benefits of creating and removing text through a query it's got a lot of
different options.
A lot of different uses for it so it's just applying that to your document.
How you see fit to use it.