I am having problems updating the ui jquery slider when a select is changed or input is changed - anyone have any ideas on the source to resolve this?
$('.application-progress').slider({
range: "min",
min: 0,
max: 100,
animate: true,
slide: function(event, ui){
$("#progress").html(ui.value+"%");
}
});
$("#progress").html($(".application-progress").slider("value")+"%");
$('input').focusout(function(){
var percentage = 0;
$('input').each(function(){
if($(this).val() != "")
percentage += 10;
});
$("#progress").slider({value: percentage});
$("#progress").html($(".application-progress").slider("value")+"%");
});
我已添加到 jsfiddle:http: //jsfiddle.net/Ykx5f/1/。