how can i add a title inside a jquery progressbar
i have some code that works fine to make a jquery file-upload progressbar.
options: {
progress: function (e, data) {
if (data.context) {
data.context.find('.progress').progressbar(
'option',
'value',
parseInt(data.loaded / data.total * 1000, 10)
);
}
},
progressall: function (e, data) {
$(".progress").progressbar(
'option',
'value',
parseInt(data.loaded / data.total * 1000, 10),
change: function() {
$(".progress-label").html( $(".progress").progressbar( 'value' ) +
"%" );
},
).end();
}
}
I want to add the value of the progress bar on top so the user knows the
percentage of the file upload. This code is not working, and i am not sure
why.
No comments:
Post a Comment