多个 jQuery UI 进度条
我试图在一个页面上显示多个“静态”jQuery 进度条,所有进度条都具有不同的不同值......无论如何,假设我有这段代码:
$(function() {
$(".progressbar").progressbar({value: 37});
})
有没有办法对多个“使用同一个类”进度条的实例”?是否可以传递不同的值?
任何帮助将不胜感激...
谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有多个具有
progressbar
类的元素,则$('.progressbar').progressbar()
行应该使所有元素成为单独的进度条。如果为每个进度条元素指定不同的 ID,则可以单独操作它们。
例如:
If you have multuiple elements which have a class of
progressbar
, the line$('.progressbar').progressbar()
should make all of them into separate progress bars.If you give each progressbar element a different ID, you can manipulate them individually.
For example: