0

For example:

<span class="'"+${Status}+"'">${Name}</span> 

I am trying to set my CSS class to the status of the user whose name I am showing.

The above syntax is wrong.

How can I embed a value like ${Status} in quotes?

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
Kuttan Sujith
  • 7,889
  • 18
  • 64
  • 95

1 Answers1

0

Use a single quote delimiter:

 <span class='${Status}'>${Name}</span> 
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265