Good evening,
Please can someone help me with this code? I'm just trying to animate the width of a progress bar based on a variable, the code works fine if I write this: $(this).animate({width:"100px"},350); so I think it is just a syntax problem but I can't for the life of me figure it out!
Thanks in advance
Please can someone help me with this code? I'm just trying to animate the width of a progress bar based on a variable, the code works fine if I write this: $(this).animate({width:"100px"},350); so I think it is just a syntax problem but I can't for the life of me figure it out!
Code:
$("div.progressBarValue").each(function(){
var a= $( this ).css( "width" );
$(this).animate({width:a},350);
});
Thanks in advance