How can I conditionally format my HTML table?2019 Community Moderator ElectionHow do JavaScript closures...

Being asked to review a paper in conference one has submitted to

The need of reserving one's ability in job interviews

What is the meaning of "producing negative zeroes" in a system that doesn't support it?

Should I use HTTPS on a domain that will only be used for redirection?

Giving a talk in my old university, how prominently should I tell students my salary?

Where is this quote about overcoming the impossible said in "Interstellar"?

Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?

Is there a way to find out the age of climbing ropes?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

I can't die. Who am I?

Learning to quickly identify valid fingering for piano?

PTIJ: Mordechai mourning

The orphan's family

What in the blazes does "rhumatis" mean?

Naming Characters after Friends/Family

Is being socially reclusive okay for a graduate student?

Is there a math equivalent to the conditional ternary operator?

Why can't we use freedom of speech and expression to incite people to rebel against government?

Why won't the strings command stop?

Should we avoid writing fiction about historical events without extensive research?

What is a term for a function that when called repeatedly, has the same effect as calling once?

How to roleplay my character's ethics according to the DM when I don't understand those ethics?

“I had a flat in the centre of town, but I didn’t like living there, so …”

Caulking a corner instead of taping with joint compound?



How can I conditionally format my HTML table?



2019 Community Moderator ElectionHow do JavaScript closures work?How do I check if an element is hidden in jQuery?How do I check if an array includes an object in JavaScript?How to append something to an array?How do I redirect to another webpage?How do I make the first letter of a string uppercase in JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?Why does HTML think “chucknorris” is a color?












9















<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
</tr><tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>


I have a HTML table like above
I'm trying to do conditional formatting based on the formula applied on the numbers there
I tried this:



var tb = document.getElementByClass('metric')


I could not get those values
Any modifications or suggestions are appreciated
Thank you










share|improve this question




















  • 3





    document.getElementsByClassName("metric")

    – Jack Bashford
    12 hours ago
















9















<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
</tr><tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>


I have a HTML table like above
I'm trying to do conditional formatting based on the formula applied on the numbers there
I tried this:



var tb = document.getElementByClass('metric')


I could not get those values
Any modifications or suggestions are appreciated
Thank you










share|improve this question




















  • 3





    document.getElementsByClassName("metric")

    – Jack Bashford
    12 hours ago














9












9








9


1






<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
</tr><tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>


I have a HTML table like above
I'm trying to do conditional formatting based on the formula applied on the numbers there
I tried this:



var tb = document.getElementByClass('metric')


I could not get those values
Any modifications or suggestions are appreciated
Thank you










share|improve this question
















<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
</tr><tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
<td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>


I have a HTML table like above
I'm trying to do conditional formatting based on the formula applied on the numbers there
I tried this:



var tb = document.getElementByClass('metric')


I could not get those values
Any modifications or suggestions are appreciated
Thank you







javascript html arrays string






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 10 hours ago









Jack Bashford

10.8k31644




10.8k31644










asked 12 hours ago









GangaGanga

755




755








  • 3





    document.getElementsByClassName("metric")

    – Jack Bashford
    12 hours ago














  • 3





    document.getElementsByClassName("metric")

    – Jack Bashford
    12 hours ago








3




3





document.getElementsByClassName("metric")

– Jack Bashford
12 hours ago





document.getElementsByClassName("metric")

– Jack Bashford
12 hours ago












3 Answers
3






active

oldest

votes


















5














the only problem with your code is you are using wrong js context to search for class using js.



document.getElementByClass('metric')


as classes can be more then 1 so the context to select class is having elements instead of element like below



document.getElementsByClass('metric')


hope this will solve your query.



if need any other help, just comment here I will try to solve






share|improve this answer
























  • Thanks . And can you please tell me how I can see the content obtained

    – Ganga
    12 hours ago













  • @Ganga you can use console.log(tb); and this will display all the contents in your console window

    – Nitin Garg
    12 hours ago













  • @Ganga hope this will help. or you can also use document.write(tb).innerHTML; to display its content on browser.

    – Nitin Garg
    12 hours ago













  • for (var index = 0; index < tb.length; index++) { document.write(tb[index]).innerHTML; } When I try this I'm getting [object HTML table size Element ]

    – Ganga
    10 hours ago













  • I wanted the inner content

    – Ganga
    10 hours ago



















2














The method is wrong - you want to use document.getElementsByClassName:



var tb = document.getElementByClass("metric");


You could also use querySelectorAll to only get td elements with the class metric:



var tb = document.querySelectorAll("td.metric");





share|improve this answer































    1














    There are two problems :



    1) You miss first <tr> and last </tr> and also must wrap your trs in table tag .



    2)
    Change :



    document.getElementByClass('metric') ;    


    To:



    document.getElementsByClassName('metric') ;





    var tb = document.getElementsByClassName('metric') ;

    console.log(tb) ;

    <table>
    <tr>
    <td class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
    <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
    <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
    <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
    </tr>
    <tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
    <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
    <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
    <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
    <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
    </tr>
    </table>








    share|improve this answer

























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55035940%2fhow-can-i-conditionally-format-my-html-table%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      the only problem with your code is you are using wrong js context to search for class using js.



      document.getElementByClass('metric')


      as classes can be more then 1 so the context to select class is having elements instead of element like below



      document.getElementsByClass('metric')


      hope this will solve your query.



      if need any other help, just comment here I will try to solve






      share|improve this answer
























      • Thanks . And can you please tell me how I can see the content obtained

        – Ganga
        12 hours ago













      • @Ganga you can use console.log(tb); and this will display all the contents in your console window

        – Nitin Garg
        12 hours ago













      • @Ganga hope this will help. or you can also use document.write(tb).innerHTML; to display its content on browser.

        – Nitin Garg
        12 hours ago













      • for (var index = 0; index < tb.length; index++) { document.write(tb[index]).innerHTML; } When I try this I'm getting [object HTML table size Element ]

        – Ganga
        10 hours ago













      • I wanted the inner content

        – Ganga
        10 hours ago
















      5














      the only problem with your code is you are using wrong js context to search for class using js.



      document.getElementByClass('metric')


      as classes can be more then 1 so the context to select class is having elements instead of element like below



      document.getElementsByClass('metric')


      hope this will solve your query.



      if need any other help, just comment here I will try to solve






      share|improve this answer
























      • Thanks . And can you please tell me how I can see the content obtained

        – Ganga
        12 hours ago













      • @Ganga you can use console.log(tb); and this will display all the contents in your console window

        – Nitin Garg
        12 hours ago













      • @Ganga hope this will help. or you can also use document.write(tb).innerHTML; to display its content on browser.

        – Nitin Garg
        12 hours ago













      • for (var index = 0; index < tb.length; index++) { document.write(tb[index]).innerHTML; } When I try this I'm getting [object HTML table size Element ]

        – Ganga
        10 hours ago













      • I wanted the inner content

        – Ganga
        10 hours ago














      5












      5








      5







      the only problem with your code is you are using wrong js context to search for class using js.



      document.getElementByClass('metric')


      as classes can be more then 1 so the context to select class is having elements instead of element like below



      document.getElementsByClass('metric')


      hope this will solve your query.



      if need any other help, just comment here I will try to solve






      share|improve this answer













      the only problem with your code is you are using wrong js context to search for class using js.



      document.getElementByClass('metric')


      as classes can be more then 1 so the context to select class is having elements instead of element like below



      document.getElementsByClass('metric')


      hope this will solve your query.



      if need any other help, just comment here I will try to solve







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered 12 hours ago









      Nitin GargNitin Garg

      1245




      1245













      • Thanks . And can you please tell me how I can see the content obtained

        – Ganga
        12 hours ago













      • @Ganga you can use console.log(tb); and this will display all the contents in your console window

        – Nitin Garg
        12 hours ago













      • @Ganga hope this will help. or you can also use document.write(tb).innerHTML; to display its content on browser.

        – Nitin Garg
        12 hours ago













      • for (var index = 0; index < tb.length; index++) { document.write(tb[index]).innerHTML; } When I try this I'm getting [object HTML table size Element ]

        – Ganga
        10 hours ago













      • I wanted the inner content

        – Ganga
        10 hours ago



















      • Thanks . And can you please tell me how I can see the content obtained

        – Ganga
        12 hours ago













      • @Ganga you can use console.log(tb); and this will display all the contents in your console window

        – Nitin Garg
        12 hours ago













      • @Ganga hope this will help. or you can also use document.write(tb).innerHTML; to display its content on browser.

        – Nitin Garg
        12 hours ago













      • for (var index = 0; index < tb.length; index++) { document.write(tb[index]).innerHTML; } When I try this I'm getting [object HTML table size Element ]

        – Ganga
        10 hours ago













      • I wanted the inner content

        – Ganga
        10 hours ago

















      Thanks . And can you please tell me how I can see the content obtained

      – Ganga
      12 hours ago







      Thanks . And can you please tell me how I can see the content obtained

      – Ganga
      12 hours ago















      @Ganga you can use console.log(tb); and this will display all the contents in your console window

      – Nitin Garg
      12 hours ago







      @Ganga you can use console.log(tb); and this will display all the contents in your console window

      – Nitin Garg
      12 hours ago















      @Ganga hope this will help. or you can also use document.write(tb).innerHTML; to display its content on browser.

      – Nitin Garg
      12 hours ago







      @Ganga hope this will help. or you can also use document.write(tb).innerHTML; to display its content on browser.

      – Nitin Garg
      12 hours ago















      for (var index = 0; index < tb.length; index++) { document.write(tb[index]).innerHTML; } When I try this I'm getting [object HTML table size Element ]

      – Ganga
      10 hours ago







      for (var index = 0; index < tb.length; index++) { document.write(tb[index]).innerHTML; } When I try this I'm getting [object HTML table size Element ]

      – Ganga
      10 hours ago















      I wanted the inner content

      – Ganga
      10 hours ago





      I wanted the inner content

      – Ganga
      10 hours ago













      2














      The method is wrong - you want to use document.getElementsByClassName:



      var tb = document.getElementByClass("metric");


      You could also use querySelectorAll to only get td elements with the class metric:



      var tb = document.querySelectorAll("td.metric");





      share|improve this answer




























        2














        The method is wrong - you want to use document.getElementsByClassName:



        var tb = document.getElementByClass("metric");


        You could also use querySelectorAll to only get td elements with the class metric:



        var tb = document.querySelectorAll("td.metric");





        share|improve this answer


























          2












          2








          2







          The method is wrong - you want to use document.getElementsByClassName:



          var tb = document.getElementByClass("metric");


          You could also use querySelectorAll to only get td elements with the class metric:



          var tb = document.querySelectorAll("td.metric");





          share|improve this answer













          The method is wrong - you want to use document.getElementsByClassName:



          var tb = document.getElementByClass("metric");


          You could also use querySelectorAll to only get td elements with the class metric:



          var tb = document.querySelectorAll("td.metric");






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 12 hours ago









          Jack BashfordJack Bashford

          10.8k31644




          10.8k31644























              1














              There are two problems :



              1) You miss first <tr> and last </tr> and also must wrap your trs in table tag .



              2)
              Change :



              document.getElementByClass('metric') ;    


              To:



              document.getElementsByClassName('metric') ;





              var tb = document.getElementsByClassName('metric') ;

              console.log(tb) ;

              <table>
              <tr>
              <td class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
              <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
              <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
              <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
              </tr>
              <tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
              <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
              <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
              <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
              <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
              </tr>
              </table>








              share|improve this answer






























                1














                There are two problems :



                1) You miss first <tr> and last </tr> and also must wrap your trs in table tag .



                2)
                Change :



                document.getElementByClass('metric') ;    


                To:



                document.getElementsByClassName('metric') ;





                var tb = document.getElementsByClassName('metric') ;

                console.log(tb) ;

                <table>
                <tr>
                <td class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                </tr>
                <tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
                <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                </tr>
                </table>








                share|improve this answer




























                  1












                  1








                  1







                  There are two problems :



                  1) You miss first <tr> and last </tr> and also must wrap your trs in table tag .



                  2)
                  Change :



                  document.getElementByClass('metric') ;    


                  To:



                  document.getElementsByClassName('metric') ;





                  var tb = document.getElementsByClassName('metric') ;

                  console.log(tb) ;

                  <table>
                  <tr>
                  <td class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  </tr>
                  <tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  </tr>
                  </table>








                  share|improve this answer















                  There are two problems :



                  1) You miss first <tr> and last </tr> and also must wrap your trs in table tag .



                  2)
                  Change :



                  document.getElementByClass('metric') ;    


                  To:



                  document.getElementsByClassName('metric') ;





                  var tb = document.getElementsByClassName('metric') ;

                  console.log(tb) ;

                  <table>
                  <tr>
                  <td class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  </tr>
                  <tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  </tr>
                  </table>








                  var tb = document.getElementsByClassName('metric') ;

                  console.log(tb) ;

                  <table>
                  <tr>
                  <td class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  </tr>
                  <tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  </tr>
                  </table>





                  var tb = document.getElementsByClassName('metric') ;

                  console.log(tb) ;

                  <table>
                  <tr>
                  <td class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1997.0</td>
                  </tr>
                  <tr class='detail-hide'><td Class='result-name '>pmu: COMMITTED_PKT_BSB</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1655.0</td>
                  <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>1836.0</td>
                  </tr>
                  </table>






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 11 hours ago

























                  answered 12 hours ago









                  EhsanEhsan

                  9,87531130




                  9,87531130






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55035940%2fhow-can-i-conditionally-format-my-html-table%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

                      How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

                      Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...