I am trying t display my text on screen. In this I am using one css to make color change.
Here is my code
var myStar = '<span style="color: rgb(255, 0, 0);">*</span>'
myStr = "Hello"+ "<br>" + myStar+ '(myValue)';
But text is not appearing properly. Instead to display actual text it is displaying like this.
*</span>(myValue)" class="x-form-field x-form-text x-form-text-default x-form-textarea" role="textbox" aria-hidden="false" aria-disabled="false" aria-readonly="false" aria-invalid="false" aria-multiline="true" aria-required="false" autocomplete="off">
It should only display
Hello
*(myValue)
Here is my actual js code where I am using this.
xtype: 'textArea',
height:70,
fieldLabel: '<div>'+myStr+'</div>',
name: myStr,
labelAlign: 'right',
margin:5,
labelWidth:180,
value: "some Value",
Can anyone suggest what I am missing here.
<span>. We'll need a Minimal, Complete, Verifiable Example in order to help.myStarandmyStr)? And what is the actual problem you're facing -- you don't want the extra class / aria information there?fieldLabel