jQuery 를 사용할 때 항상 최신버전을 사용하려면 다음과 같은 URL을 사용하면 된다
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Javascript Test</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#div1").text('Hello World');
$("#div1").append('<br><h1>감사합니다</h1>');
$("body").css('text-align','center');
});
</script>
<style type="text/css">
#div1 {
display:inline-block;
margin:200px auto;
border:1px solid black;
width:300px;
height:300px;
text-align:center;
}
</style>
</head>
<body>
<div id="div1"></div>
</body>
</html>