��3�́@�u�X�^�C���V�[�g�N���X�����݂ɐ؂�ւ���v

���ۂ̃y�[�W����ł̓X�^�C���V�[�g�̃N���X�̐؂�ւ����s�Ȃ��ꍇ������܂��B����́A�X�N���v�g�Œ��ڃX�^�C���V�[�g�̃v���p�e�B�ƒl�𑀍삷�������y�ŁA�X�^�C���V�[�g�t�@�C�����C�����邱�Ƃŕ\�������X�^�C���`���ύX�ł��邽�߂ł��B
jQuery�ł�toggleClass()���g�����ƂŔC�ӂ̃X�^�C���V�[�g�N���X�����݂ɒlj��^�폜���邱�Ƃ��ł��܂��B�N���X�̒lj��̂��߁A�����̃X�^�C���V�[�g�v���p�e�B�S�Ăɏ㏑�������킯�ł͂���܂���B
�T���v��1�ł̓{�^�����N���b�N����ƃX�^�C���V�[�g�N���X���؂�ւ��\�����ω����܂��B�X�^�C���V�[�g�N���X�Œ�`����Ă���v���p�e�B�̂ݐ؂�ւ��̂�������܂��B�i�T���v��1�����s�����j

�yHTML�z
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>jQuery Sample</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<h1>jQuery�T���v��</h1>
<h2>jQuery�Ƃ́H</h2>
<p class="normal">�y�ʁ^�����ȃ��C�u�����ł�</p>
<form>
<input type="button" value="�����ւ�" onClick="changeCSS()">
</form>
</body>
</html>


�yCSS�z
h1 {
font-size:14pt;
border-bottom:1px dotted gray;
width:320px;
}
.normal {
color:black;
font-size:10pt;
font-weight:100;
background-color:#ddd;
}
.highlight {
color:red;
font-size:16pt;
font-weight:900;
}


�yJavaScript�z
function changeCSS(){
$("p").toggleClass("highlight");
}


[�ڎ���]