关于jquery的多个选择器的使用示例
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#add,#edit").bind("click",function(){
$("p").slideToggle();
});
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
<div id='add'>add</div>
<div id='edit'>edit</div>
</body>
</html>
您可能感兴趣的文章:
jquery选择器大全详解
关于jquery的多个选择器的使用示例
详解强大的jQuery选择器之基本选择器、层次选择器
jQuery基本选择器选择元素使用介绍
jquery选择器(常用选择器说明)
有关jquery一些选择器的用法小结
jQuery代码优化 选择符篇
boxy基于jquery的弹出层对话框插件扩展应用 弹出层选择器
jquery 获取对象的方法以及jquery 选择器的使用
jquery选择器大全 全面详解jquery选择器