title: Set a span visible and invisble
body: <p>I have a span that is part of a JSON object and need to set it visible or invisible due to some config options.</p>
  
  <p>I have the following code but I am struggling to make it work:</p>
  
  <pre><code>function isc_getsvldata() {
  
          return JSON.stringify(
              {
  
                  polygon_shading_template_hash:
                  {
                      AVAILABLE_3_NONE:
                      {
                          interior: 0x&lt;%= System.Drawing.ColorTranslator.ToHtml(Config.ColourSoldout).TrimStart('#') %&gt;,
                          border: 0x&lt;%= System.Drawing.ColorTranslator.ToHtml(Config.ColourSoldout).TrimStart('#') %&gt;,
                          poly_tool_tip_template:
  
                               &lt;%= Config.ISCavailability ?"&lt;br&gt;&lt;span class='textBlack'&gt; [% @1:((polygon.counters[1] * 100) / polygon.counters[0]); %]%&lt;/span&gt;":"&lt;span class='someotherclass'&gt;Nothing&lt;/span&gt;"%&gt;
                      }
                  }
              }
          );
  }
  </code></pre>