Expand my Community achievements bar.

SOLVED

Displaying the span id in HTL

Avatar

Level 2

I have a requirement I have to display a ID from the text box which I added in the dialog field (rich text) <span class="num"></span> and I am calling it using sling model class and used like this ${practice.Response @ context='html'}  and in Js i have given element.innterhtml it is working if I give it in HTML instead of passing it from the dialog. I was getting <span class="num"></span> as an plain string instead of html element as below so how to acheive this


Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 6
1 Reply

Avatar

Correct answer by
Level 6