Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김태민
/
OpenSource_Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김태민
2019-12-04 15:46:53 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
497e702ef177bddad89f588990e57a6c5ced3f2b
497e702e
1 parent
98e6c237
체크박스 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
views/recommendation.ejs
views/recommendation.ejs
View file @
497e702
...
...
@@ -55,22 +55,22 @@
<script
src=
"//code.jquery.com/jquery.min.js"
></script>
<script>
$
(
"#check_all"
).
click
(
function
()
{
$
(
"input[name=
kinds
]:checkbox"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name=
shape
]:checkbox"
).
prop
(
"checked"
,
"checked"
);
});
$
(
"#uncheck_all"
).
click
(
function
()
{
$
(
"input[name=
kinds
]:checkbox"
).
removeProp
(
"checked"
);
$
(
"input[name=
shape
]:checkbox"
).
removeProp
(
"checked"
);
});
$
(
"#count_check"
).
click
(
function
()
{
alert
(
$
(
"input[name=
kinds
]:checkbox:checked"
).
length
);
alert
(
$
(
"input[name=
shape
]:checkbox:checked"
).
length
);
});
$
(
"#check_all"
).
click
(
function
()
{
$
(
"input[name=
shape
]:checkbox"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name=
kinds
]:checkbox"
).
prop
(
"checked"
,
"checked"
);
});
$
(
"#uncheck_all"
).
click
(
function
()
{
$
(
"input[name=
shape
]:checkbox"
).
removeProp
(
"checked"
);
$
(
"input[name=
kinds
]:checkbox"
).
removeProp
(
"checked"
);
});
$
(
"#count_check"
).
click
(
function
()
{
alert
(
$
(
"input[name=
shape
]:checkbox:checked"
).
length
);
alert
(
$
(
"input[name=
kinds
]:checkbox:checked"
).
length
);
});
</script>
</article>
...
...
Please
register
or
login
to post a comment