1。jquery下载
http://docs.jquery.com/Downloading_jQuery
2。简单使用
<html>3。jQuery css selector 在这里 http://docs.jquery.com/DOM/Traversing/Selectors#CSS
<head>
<script type="text/javascript" src="path/to/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("a").click(function(){
alert("Thanks for visiting!");
}); });
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
$("a")是一个jQuery selector,在这里,它选择所有的a元素。$本身为jQuery"类"的别名,
因此$()构建了一个jQuery对象。