<div data-progress="0"></div>
$('div').css('data-progress',10');
why this doesn't work? I'd put this within a loop and manipulate the div's data-progress attr but nothing happened.
It doesn't work because data-progress is not a CSS property, it is a custom attribute.
Use the .attr() method to modify the attribute.
$('div').attr('data-progress', 10);
Also, you had a stray ' after the 10, remove that.
'character be there, to the right of the10?