jquery根据属性和index来查找属性值并操作 - Web前端
作者:98wpeu发布时间:2026-06-14分类:网页前端技术浏览:103
导读:<divclass="zy_menuclearfix"><ahref="javascript:;"rel="externalnofollow"re...
<div class="zy_menu clearfix"> <a href="javascript:;" rel="external nofollow" rel="external Nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="1" id="assoeted1" class="hover_a">课件库</a> <a href="JavaScript:;" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="2" id="assoeted2">课堂实录</a> <a href="Javascript:;" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="3" id="assoeted3">试题库</a> <a href="javascript:;" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="4" id="assoeted4">教案库 </a> <a href="javascript:;" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="5" id="assoeted5">素材库 </a> </div>
var assoeted =5;
$(".zy_menu a[rel="+assoeted+"]").removeClass("hover_a").addClass("hover_a");
$(".zy_menu a").removeClass("hover_a").eq(assoeted-1).addClass("hover_a");
相关推荐
- jquery插件jTimer(jquery定时器)使用方法 - Web前端
- jquery导航制件jquery鼠标经过变色效果示例 - Web前端
- JQuery判断HTML元素是否存在的两种解决方法 - Web前端
- js获取通过ajax返回的map型的JSONArray的方法 - Web前端
- jquery如何实现锚点链接之间的平滑滚动 - Web前端
- jquery通过a标签删除table中的一行的代码 - Web前端
- jquery解析xml字符串简单示例 - Web前端
- jquery $.each 和for怎么跳出循环终止本次循环 - Web前端
- jquery 删除cookie失效的解决方法 - Web前端
- jQuery 快速结束当前正在执行的动画 - Web前端
- 网页前端技术排行
-
- 1[Web前端]用javascript实现默认图片替代未显示的图片 - Web前端
- 2分析Iconfont-阿里巴巴矢量常用图标库 - Web前端
- 3【第六章】Foundation之按钮和下拉功能 - Web前端
- 4基于jquery的滚动条滚动固定div(附演示下载) - Web前端
- 5jQuery实例教程:制作网页中可折叠的面板 - Web前端
- 6jQuery编写widget的一些技巧分享 - Web前端
- 7jQuery实现鼠标移到元素上动态提示消息框效果 - Web前端
- 8在Mac/PC上远程调试iPhone/iPad上的网页 - Web前端
- 9分享精心挑选的12款优秀jQuery Ajax分页插件和教程 - Web前端
- 最近发表
-
- WordPress随机显示特色图片插件:Random Post Thumbnails
- KeePass实现Chrome浏览器自动填充密码方法一
- LNMP一键包nginx 301强制跳转到https教程
- KeePass实现Chrome浏览器自动填充密码方法二
- #建站# 免费的VPS管理软件Xshell8/Xftp8中文版下载
- 使用Xshell 8连接VPS教程_电脑登录vps的方法
- WordPress评论界面添加烟花????效果
- 不同浏览器书签同步方案:坚果云+Floccus_详细使用教程
- iOS端KeePassXC客户端APP:Strongbox Password Safe
- 给WordPress评论中的Gravatar头像图片添加ALT属性


