-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
29 lines (25 loc) · 682 Bytes
/
script.js
File metadata and controls
29 lines (25 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$(function () {
$("#action1").on("click", function () {
$("[id=taylorSwift]").css("background-color", "red")
})
})
$(function () {
$("#action2").on("click", function () {
$("#list li[class]").css("background-color", "green")
})
})
$(function () {
$("#action3").on("click", function () {
$("li[id^=t]").css("background-color", "#A076F9")
})
})
$(function () {
$("#action4").on("click", function () {
$("#list li[id][class*=item]").css("background-color", "#FFC95F")
})
})
$(function () {
$("#action5").on("click", function () {
$("#list li[class$=m][id^=r]").css("background-color", "#A78295")
})
})