When I try to update the width property of the css with a value from the array (a percentage value) and assign it to the .css() property of my object it will not change the width, but if I enter it directly then it works:
function updateCurrentAssetUploadProgressBox() {
var activeWorkflows = new Array();
activeWorkflows[0] = "15"; //progress percentage
activeWorkflows[1] = "MyTestAsset.jpg"; //asset name
var percentComplete = activeWorkflows[0] + "%"; // THIS WILL NOT WORK
$('#progressBox #metaAndLinksRow #itemName').html(activeWorkflows[1]);
//$('#progressBox #progressRow #progressBar').css('width', 'percentComplete'); // DOES NOT WORK
$('#progressBox #progressRow #progressBar').css('width', '15%'); // WORKS FINE
}
Thank you.