I'm working on incorporating this into a dynamic script using data from an XML file (aiming for 50% to be dynamic).
<div class="progress-bar progress-bar-danger" data-progress-animation="50%" data-appear-animation-delay="20">
It currently functions only in Firefox. Any suggestions?
x = xmlDoc.getElementsByTagName("CD");
i = document.getElementById("combobox").selectedIndex;
var z = document.getElementById("combobox1").selectedIndex;
var y = document.getElementById("combobox1").options;
var m = xmlDoc.getElementsByTagName("MFPERS"+y[z].value)[i].childNodes[0].nodeValue;
var str ='<div class="progress-bar progress-bar-danger" data-progress-animation="';
str += m;
str += '%" data-appear-animation-delay="20">';
document.write(str);