Dynamic width
http://stackoverflow.com/questions/32879415/increasing-textbox-width-from-ajax-response-value-not-working
by Checha Man
HTML
<input type="text" id="value" style="border:none;"/>
<br/>
<input type="text" id="progress" style="width:0px;background-color: red;"/>
JavaScript
var res = "150";
document.getElementById("value").value=res;//Working
document.getElementById("progress").style.width=res+"px";