随笔-71  评论-5  文章-0  trackbacks-0
//点击时根据<a href="" name="column"> 中的name来控制div 的显隐 

  $(document).ready(function(){
    $("a[name='column']").click(function(){
    var a  = this.id;
    $("div[class='hword2 fz14']").each(function(){
     var a = $(this).attr("name");    
     if( $(this).attr("name")==a){
     $(this).show();
     }else{
       $(this).hide();
     } 
      }); 
   
  }); 
   
 })
posted on 2014-11-11 16:40 藤本蔷薇 阅读(141) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: