Question: Reading and Writing with JavaScript Part 1) Reading Attributes Read Tag Attribute Experiment: Using the information below, add a button so that when the button

Reading and Writing with JavaScript

Part 1)

Reading Attributes

Read Tag Attribute Experiment: Using the information below, add a button so that when the button is clicked, it will display an alert that shows the contents of the class attribute on the a tag (a string my_css_stuff)

Part 2)

Write Tag Attribute Experiment

Write additional code so that when clicked it shall set the CSS class of it's a tag to animate, use the this keyword from the question above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!