<div class='progress-20'>
我想用其他值改变 progress-20,我已经通过自定义表达式获得了值。
最佳答案
$('.progress-20').attr('class','new_value')
关于javascript - 使用 jquery 设置自定义属性和值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20015493/
标签 javascript jquery
<div class='progress-20'>
我想用其他值改变 progress-20,我已经通过自定义表达式获得了值。
最佳答案
$('.progress-20').attr('class','new_value')
关于javascript - 使用 jquery 设置自定义属性和值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20015493/
相关文章:
javascript - 如果我有一个包含在其他页面上的 nav_bar.html 文件,我如何显示哪个菜单项处于事件状态?
javascript - react native : update object with setState
javascript - Google Closure Compiler 中的动态类型发现
jquery - 更改导航菜单类并在滚动或单击时显示子树菜单
jquery - 如何将两个 jquery 对象包装成一个?
jQuery 验证错误消息干扰了我的表单。 (jquery.validate.js)
javascript - 是否可以使用 jquery 和 split 方法跳过 html 标签?