I am not familiar with the plugin, but with CSS you can just put a div with an inscription on the progress bar. I'm not sure if it will work with nested divs, since the inner div can be deleted when the content for the progress bar is displayed.
You can play with the top and left positions to place the text exactly where you want. In person, you can dynamically swap left so that the text moves with the line, although this can be a bit more complicated.
Z-index should not be a problem, but if you want to reorder divs, you may need to make sure that the text has a larger z-index than the panel.
CSS:
#bardivs { width:400px; position:relative; } #progresstext { position:absolute; top:0; left:0; }
HTML:
<div id="bardivs"> <div id="progressbar"></div> <div id="progresstext"></div> </div>
JS:
$("#progressbar").progressbar("option", "value", data); $("#progresstext").html("<p>Hard code or string here<p>");
Peter Ajtai
source share