jquery根据属性和index来查找属性值并操作 - Web前端
作者:98wpeu发布时间:2026-06-14分类:网页前端技术浏览:245
导读:<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");
相关推荐
- SEO将被AI人工智能颠覆,你准备好了吗? - Web前端
- 重温JQuery中的html(),text(),val()的语法和应用 - Web前端
- 自媒体平台刮起原创保护之风 靠抄袭和剽窃自媒体即将被抛弃 - Web前端
- 分析动态生成dom绑定事件 - Web前端
- 个人对jQuery中live()与bind()的理解 - Web前端
- 那些年玩转过的一些jQuery开发小技巧 - Web前端
- 微信小程序再掀波澜:开放微信群相关能力 更个性化的服务 - Web前端
- 百度账号实名制紧急启动 未来百度SEO玩得转吗? - Web前端
- 功能强大的jquery.validate表单验证插件 - Web前端
- 微信公众平台新增附近的小程序功能 猜测意欲抢占线下流量? - Web前端
- 网页前端技术排行
-
- 1[Web前端]用javascript实现默认图片替代未显示的图片 - Web前端
- 2分析Iconfont-阿里巴巴矢量常用图标库 - Web前端
- 3jQuery实例教程:制作网页中可折叠的面板 - Web前端
- 4【第六章】Foundation之按钮和下拉功能 - Web前端
- 5基于jquery的滚动条滚动固定div(附演示下载) - Web前端
- 6jQuery编写widget的一些技巧分享 - Web前端
- 7在Mac/PC上远程调试iPhone/iPad上的网页 - Web前端
- 8分享精心挑选的12款优秀jQuery Ajax分页插件和教程 - Web前端
- 9jQuery实现鼠标移到元素上动态提示消息框效果 - 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属性


