Here is the code iam using for Progress bar of jQuery UI
$(document).ready(function () {
$("#divprogressbar").progressbar({
value: 1
});
$("#divprogressbar").find( ".ui-progressbar-value" ).css({"background": '#005A84'});
$(".progress-label").text($("#divprogressbar").progressbar("value") + "%");
});
I am using the jQuery references
<link href="/Content/jquery-ui.css" rel="stylesheet" type="text/css" />
Here is the div
<div id="divprogressbar" style="width: 200px; border: 1px solid black">
<div class="progress-label" style="color: Black; padding-top: 5px;">
</div>
</div>
我在IE和Chrome浏览器中没有问题,但是当我在Firefox中运行时,我面临以下错误
** $(...).progressbar is not a function **
请帮助我,我无法转发我的申请。提前致谢
答案 0 :(得分:0)
你可以尝试,
$(document).ready(function(){
$("#divprogressbar").progressbar({
value: 1
});
$("#divprogressbar").find( ".ui-progressbar-value" ).css({"background": '#005A84'});
$(".progress-label").text($("#divprogressbar").progressbar("value") + "%");
});
});
答案 1 :(得分:0)