i used a html macro to display a static table. A small piece of javascript is used to highlight the rows depending on table values. this works well on the preview screen. however, in the actual view, color highlight is no where to be found. below is my code in html macro:

      <html>
      <head>
      <script type="text/javascript">

      $(document).ready(function(){
      $('#report td.status').each(function(){
      if ($(this).text() == 'failed')

      { $(this).css('background-color','red'); }

      if ($(this).text() == 'passed')

      { $(this).css('background-color','green'); }

      });
      });

      </script>

      </head>
      <body>

      <table id="report">
      <tr><th>Builds</th><th>Status</th></tr>
      <tr><td>1</td><td class="status">failed</td></tr>
      <tr><td>2</td><td class="status">passed</td></tr>
      <tr><td>3</td><td class="status">passed</td></tr>
      <tr><td>4</td><td class="status">failed</td></tr>
      </table>

      </body>
      </html>

            [CONFSERVER-41254] html macro javascript issue

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2879801 ] New: CONFSERVER Bug Workflow v4 [ 3003551 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2799458 ] New: JAC Bug Workflow v3 [ 2879801 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2723169 ] New: JAC Bug Workflow v2 [ 2799458 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2386198 ] New: JAC Bug Workflow [ 2723169 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2283206 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2386198 ]
            Michael Andreacchio made changes -
            UIS Original: 1
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2223768 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2283206 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2177119 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2223768 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1942065 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2177119 ]

              Unassigned Unassigned
              fe493c9a2686 Ming Ho
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: