JQuery学习之道:关于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>
补充:web前端 , JavaScript ,