<!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>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
<!--
function changeText()
{ $("#about").html("<b>軽量/高速</b>なライブラリです");
}
// -->
</script>
</head>
<body>
<h1>jQuery サンプル</h1>
<p id="about">jQueryとは?</p>
<form>
<input type="button" value="書き替え" onClick="changeText()">
</form>
</body>
</html>
|