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
  • 23,524
  • 7
  • 119
  • 253
Kuttan Sujith
  • 7,811
  • 18
  • 63
  • 92

1 Answers1

0

Use a single quote delimiter:

 <span class='${Status}'>${Name}</span> 
Paul Sweatte
  • 23,524
  • 7
  • 119
  • 253