Having some trouble with my ajax code that is supposed to print values:
success: function(returndata) {
$('#first').html("<div id='first' class='progress-bar progress-bar-primary' role='progressbar' aria-valuenow='22' aria-valuemin='0' aria-valuemax='100' style='width: "+ returndata[0] +"%;>"+ returndata[0] +"%'</div>");
}
The value of returndata[0]
is being printed in the first part, but it's not showing up in the second part as expected.
It should adjust the background color width and display a number over it like this: https://i.sstatic.net/5HJET.png
Currently, only the width of the color is displaying correctly without the number over it. It looks like this:
https://i.sstatic.net/4TnYL.png
If anyone can help me figure out where I am making a mistake, please let me know.