DOM Manipulation

We are able to manipulate HTML with Javascript. First we need to select an element, like in this example:

We believe in God, the Eternal Father, and in His Son, Jesus Christ, and in the Holy Ghost.

Create Element

We can use Create Element to create an HTML element. In this example we create a paragraph:

And in this example, we add a button:

Append Child

Append Child is used together with create element to attach the new element to the html. We can use append child to move an element to a different place:

We believe that through the Atonement of Christ, all mankind may be saved, by obedience to the laws and ordinances of the Gospel.

Insert Before

Insert Before is used to insert an element before another one. It takes two parameters. Here's an example:

We believe that the first principles and ordinances of the Gospel are: first, Faith in the Lord Jesus Christ; second, Repentance; third, Baptism by immersion for the remission of sins; fourth, Laying on of hands for the gift of the Holy Ghost.

Fourth Article of Faith

Remove Child

Remove Child can be used to remove an element, like in this example:

Fifth Article of Faith

We believe that a man must be called of God, by prophecy, and by the laying on of hands by those who are in authority, to preach the Gospel and administer in the ordinances thereof.

Replace Child

With Replace Child we can swap two elements, like in this example:

Article of Faith 6

We believe in the same organization that existed in the Primitive Church, namely, apostles, prophets, pastors, teachers, evangelists, and so forth.

Sixth Article of Faith