Testing custom elements I found this, for example:
In my html I have:
<jqx-button id=”btn”
width=”250″
height=”100″
template=”danger”
theme=”web”> Hello
</jqx-button>
In my javascript I have
01 $(function(){
02 var btn = document.getElementById(‘btn’);
03 btn.textPosition = “center”;
04 btn.value = “World”;
05 });
The result is a red button with the text World.
But if I remove the line 3:
01 $(function(){
02 var btn = document.getElementById(‘btn’);
03 // btn.textPosition = “center”;
04 btn.value = “World”;
05 })
The text is keeped as “Hello”. Could be this a bug?
Browser: Google Chrome v61
SO: Ubuntu 16.04