Question: Question 2 JavaSeript: Given the following HTML Codes clasection peasperate Text here wp class='parace Text Here 2/ Some Text Here / Some Text Here 4
Question 2 JavaSeript: Given the following HTML Codes clasection peasperate Text here wp class='parace Text Here 2/
Some Text Here /
Some Text Here 4
Some Text Here 5
Write the necessary JavaScript/DOM Code for each part: 1. Replace the text inside the paragraph whose id=msg with Welcome ITCS333. You must find the element by id approach. 2. Change the text color to red for all paragraphs whose class = para2 under div whose class = section. Your code must assume that the number of matches is unknown. You must find elements by query approach. 3. Underline all paragraphs. You must use find elements by tag name approach. 4. Make the borders of all input elements whose class = mylnput to 10px solid border of red color. Your code must assume that the number of matches is unknown. You must find the elements by class approach. You should answer each part separately. Number your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
