Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
sample14
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$("button").click(function(){
$(":checkbox").attr("checked","checked");
});
});

</script>

<body>
스킬:




value="JavaScript" id="javascript" />





</body>
</html>


체크박스 전체 선택 후 해지 할려면.. 이 상태에서 어떻게 하면 되나여??
몇가지 방법을 다 써봤는데.. 잘 안되서...


==========>
$(function(){
$("button").click(function(){
if($(":checkbox").attr("checked","checked")) {
$(":checkbox").attr("checked","checked");
} else {
$(":checkbox").removeAttr("checked","");
});
});

==> 이렇게 하면 되는거 아닌가여??
잘안되서...