The only thing new in this example is how drugs to more than one Jason play sold.
You see so at this at the first Jason pile and here is the second one.
So no one was picked up at one time the data for the first Jason filed will be displayed.
This one which has a name Jack and his age and his proficient analytic extreme the popular view disappear
and the data for the second yes and file will be displayed so it contains a name for someone called
Joey.
And someone called Adam and his age and his proficient to read it.
So let's see how we can do this let's start from scratch so I will remove everything within script tag
so first later if we define two variables known to us to the input which hit the button and another
one to add this to the division that will hold the text or deleted.
So not even the first one bullet e.g. in equal to
so in order to make a function for the button.
So beauty in the like equal to function
then within this function we will then be replaced so defining a variable.
It will choose new X in L it TGP
picks up in
and then the method which is get
then the name of the adjacent play but which one we will choose.
That was just now type.
The first Jason File which you call file 1 and I will tell you later how we can access to the second
one for file one not Jason.
Then it's not on load to a function
variable Y equal to Jason that pass
nothing until now was new.
Everything we have explained before I told you that then the thing is how to access to more than one
file.
So a dialog that will access to the data and say that some file will be on another function and we will
just call it here.
So its name is render chicken l would take Y which you hold now the adjacent data.
Finally Lucas sent the request so X that sent
relative maybe the function
its name is render chicken l learned as an argument data
firstly and implement make the loop.
That's why I look through all of the data inside each just on time form and then variable or equal to
zero.
Boy then data lend or a plus plus
not to forget to define a variable to be updated with a little fixed and equal to empty
so within a row the text will be equal to the all text
plus which would display the name and age.
So
but let's remake make all this inside our pro-growth Ted
plus
play the age
Delta to make another group to look through all the array here in the first and second guess and file
each one of them has an array for object
within this law it would display the work you see here that they work for here.
The first object just one value and here to values.
So we have to make and condition to check if it has one value.
So display this value and if it has two values so so display the first volume and then check if there
is another value at this value and add another fixed so that you see
yet will equal zero
so in this case equal to Dex plus data on the work
J Merkley if we add fixed here in Word as
Nils.
And so now just remain to display this data inside the division that she didn't know the element
that scared and even consider adjusting it she didn't know.
So this even take the position and that variable that we want to display.
So I want to display before and and the variable is fixed for sure
which you know hold all the data within that just fine.
So now we expect that that data that will be appear in that data or the adjacent fine one
third at some from birth through ticket
index or line 26
turns 6.
You are here
that you team element that insert adjusting is not our function.
So the wrong will be with the name of the function insert adjacent to bill or one of the inputs so let's
check this out
here.
Sarah
text is a variable.
So tests being without any quotes.
If you save
nice so if you read the data for the first adjacent time which is for someone called this one though
we want to display the second year some time.
So how we can do this.
So we define variable and pull a thread.
It'll be equal to one then increment this flag.
When we click button so now one would click the button flag will be equal to two.
And here change the name of some file so it'll be a file plus
this flag.
So in our flag is equal to one.
So it will open file one adjacent which at the first adjacent file.
Then the next click will be file to the Jason.
So it'll be the second time that we choose this
service and for all.
Yeah.
Here that
submitted that data for the first Jason File Jack the little clipping in so the data for the second
Jason File for someone called Joey and Adam nice so that's how you can make a little to display more
than one.
JASON CLARE Yes.
Now remain to remove the button once a week like the second time so this flag is more than true.
So in this case button the style
display like ritual num
nice which we add another strict they want to make this division content into the ball.
So there was a candidate in the data.
So attribute.
Content
it is a one
word your show
would you say see
Mark.
Because we make a content interval so the background for the division is played before we make the effort
to solve this.
It's too easy to give it a style equal to
display
none and then change it here when we click the button.
So each team will
style the display.
It will be equal to look.
So now there is our can change unit they like for example who work as an English teacher.
Nice.
So that's everything about how you can access to more than one Jason File.
I hope you enjoyed this exercise and see you next time.