Android

jquery

배움의길 2012. 8. 17. 21:27

<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR" />
<title>Insert title here</title>
<style type="text/css">
 .bg{background-color: silver}
 .red{background-color: red}
</style>
</head>
<script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(

Android.xmind

  function(){
   $('#hw').addclass("bg");
   $('#hw').click(function(){
    $(this).addclass("red");
   })
  }
  )
</script>

<body>
<div style="background-color: yellow" onclick="alert('hi')">
jQuery 시작하기
</div>
<div class="bg">
jQuery 시작하기
</div>
<div id="hw">
jQuery 시작하기
</div>
</body>
</html>

Android.xmind