Write javascript code to delete the second paragraph

Assignment Help JAVA Programming
Reference no: EM131451802

Using the attached file as a starting point, write JavaScript code to attempt the following tasks:

1. Delete the second paragraph.

2. Swap paragraphs 1 and 3

3. Replace the text of the first paragraph with: "This is the new text"

4. Add a duplicate of the second paragraph to the DOM after the third paragraph

5. Add a duplicate of the second paragraph to the DOM before the third paragraph

You must do these tasks by manipulating the DOM elements, not just changing the text so it looks right.

The purpose of the exercise is to learn how to use javascript, and so you are NOT to add any "class" or "id" attributes to the markup, all functionality must be performed through contextual searches.

You should create a new file for each of the exercises, and add your code to the do_exercise() function. This means you will submit 5 html files inside of 1 zip file.

You must write "vanilla" javascript to do these exercises, you MUST NOT use an external framework like jQuery.

This task will be used in Tutorial set C.

Attachment:- start.rar

Verified Expert

This assignment deals with the JavaScript functionality. In this assignment JavaScript language is used to parse HTML Dom elements and perform the required operation such as appending the new element before or after the element, deleting the element or modifying the contents of the required element.

Reference no: EM131451802

Questions Cloud

How could the hospital in this example have prepared : How could the hospital in this example have prepared its supervisors to understand their proper role during an organizing campaign?
Complete the implementation plan and potential ramifications : complete with implementation plans, potential ramifications, and feedback mechanisms
Interpretation of engineering and marketing salaries : Message Strategies: Informational Reports You've been in your new job as human resources director for only a week, and already you have a major personnel crisis
Create the routine inquiry in memorandum format : Create this Routine Inquiry in Memorandum format as a Word document. You will upload your finished document to the appropriate upload area as a .doc file.
Write javascript code to delete the second paragraph : Purpose of the exercise is to learn how to use javascript, and so you are NOT to add any "class" or "id" attributes to the markup, all functionality must be performed through contextual searches.
Do you find the psychological reading of odysseus : Do you find the psychological reading of Odysseus in the Odyssey to be a useful theoretical approach? Why or why not?
How does the lysistrata utilize existing heroic tropes : How does the Lysistrata utilize existing heroic tropes in its parodic hero and storyline? Does knowing these tropes affect your experience of the play.
What benefits does a training system like platos offer : What benefits does a training system like Plato's offer? What dangers lurk beneath the surface? Would you like to be part of this society?
What would be the boiling point of water at one atmosphere : What would be the boiling point of water at 1 atmosphere? Explain how you arrived at the answer? Show the process you used.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Declare another television object called portable

Add to the comment header as indicated at the top of the program.

  Write application that uses interactive gui based on jframe

Write a Java Application that uses an interactive Graphical User Interface (GUI) based on the JFrame class using SWING GUI components

  Calculates the total annual compensation of a salesperson

Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of $35,750

  Enhance the test score applicaion

Enhance the Test Score applicaion so it uses a "while" or a "do-while" loop plus a for loop - Change the while statement to a do-while statement, andtest this change. Does this work any better than the while loop?

  Complete the classes cipher - caesar and transpose

Complete the classes Cipher, Caesar, and Transpose, and Reverser - Define an interface called Constants that will store the value 26 in the identifier WRAP_AROUND;

  Examine the clocktype class definition

Examine the ClockType class definition. How many attributes does it contain? Assume we have two classes and have instantiated an object from each class. How many copies of each class's attributes and methods exist in the instantiated objects?

  Part - 1build a graphical user interface for displaying the

part - 1build a graphical user interface for displaying the image groups cluster in jmjrst. design and implement using

  A java program that reads the records

A java program that reads the records from the golf.dat file and displays them. It also displays the name of the player with the best (lowest) golf score.

  Create a complete java application that meets these

create a complete java application that meets these requirements1. the program has an opening comments section using

  Write a program that allows a user to enter a line of text

write a program that allows a user to enter a line of text counts number of words and number of vowels in the sentence

  Determine the output displayed when the button is clicked

Determine the output displayed when the button is clicked. Assume the five lines of the file Dates.txt contain the numbers 1492, 1776, 1812, 1929, and 1941 and the file is in the appropriate folder.

  Write a program that starts a player off with a bank of $15

Write a program that starts a player off with a bank of $15.00.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd