forked from stellajkimm/c9-first-workspace
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathscript.js
More file actions
20 lines (13 loc) · 663 Bytes
/
script.js
File metadata and controls
20 lines (13 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* global $ */
$(document).ready(function(){
//This page is for JavaScript code including jQuery. Use the comments below to complete activities 1 through 4.
// 1. On line 7 use jQuery to change the text color of the h2 tags.
$("#button1").click(function() {
alert("hi");
});
// 2. On line 13 use jQuery to append "I live in NYC" to the h2 tag with the id four.
$("#button2").click(function() {
});
// 3a. Write a click function for the button with id button3.
// 3b. Inside your button3 click function create an alert that asks the user "Are you sure you want to click this button?"
});