- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › jQuery equivalent for css selector progress::-webkit-progress-value
I need to adjust the transition time for an HTML5 `
My current tries:
CSS:
progress::-webkit-progress-value {
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
-o-transition: all 0.5s;
-ms-transition: all 0.5s;
transition: all 0.5s; /* Works like a charm */
}
JavaScript (with no success):
// These lines do nothing when the progress value changes:
$(“.progressSelectorClass[progress-value]”).css({“-webkit-transition” : “all 6s”});
$(“.progressSelectorClass > *”).css({“-webkit-transition” : “all 6s”});
$(“.progressSelectorClass”).css({“-webkit-transition” : “all 6s”});
// This will return an error:
$(“.progressSelectorClass::-webkit-progress-value”).css({“-webkit-transition” : “all 6s”});
Is there any chance to select the `progress::-webkit-progress-value` in JavaScript (with or without jQuery)?
Hi,
You’ll want to do this
$(document).ready(function() {
$(‘#div’).html($(‘#progress’).val());
});
Hi rahuldsg,
Thanks for your reply, but I’m not having problems getting or setting the value of the progress-bar. I try to adjust the css `transition` on the `progress-value`.
I’ve just created a jsFiddle that should be more clearly what I try to achieve:
[http://jsfiddle.net/rD5Mc/](http://jsfiddle.net/rD5Mc/ “http://jsfiddle.net/rD5Mc/”)