I am trying to change the alignment of textbox dynamically and it is not working. But if I give through on load of widget that is working fine.
code; HTML
JavaScript:
document.getElementById('btn').onclick = function(){
console.log(document.getElementById('text1').style.textAlign);
document.getElementById('text1').style['text-align'] = "left";
} Try document.getElementById('text1').style.textAlign = "left";
以上就是Dynamic alignment for textbox in IE10 is not working的详细内容,更多请关注web前端其它相关文章!