forked from mitchellg/CSC212-Group-Maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
attributeList.js
executable file
·43 lines (33 loc) · 1.16 KB
/
attributeList.js
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//Code adapted from a query on selecting multiple checkboxes on Stackoverflow.com
$(document).ready(function () {
$('#selectall1').click(function () {
$('.selectedId1').prop('checked', this.checked);
});
$('#selectall2').click(function () {
$('.selectedId2').prop('checked', this.checked);
});
$('#selectall3').click(function () {
$('.selectedId3').prop('checked', this.checked);
});
$('#selectall4').click(function () {
$('.selectedId4').prop('checked', this.checked);
});
$('#selectall5').click(function () {
$('.selectedId5').prop('checked', this.checked);
});
$('#selectall6').click(function () {
$('.selectedId6').prop('checked', this.checked);
});
$('#selectall7').click(function () {
$('.selectedId7').prop('checked', this.checked);
});
$('#selectall8').click(function () {
$('.selectedId8').prop('checked', this.checked);
});
$('#selectall9').click(function () {
$('.selectedId9').prop('checked', this.checked);
});
$('#selectall10').click(function () {
$('.selectedId10').prop('checked', this.checked);
});
});