JSFiddle - React, Tailwind, and code Playground

by Rich Costello

HTML

<p class="blue under">Hello</p>
  <p class="blue under highlight">and</p>
  <p class="blue under">then</p>
  <p class="blue under">Goodbye</p>

CSS

p {
      margin: 4px;
      font-size: 16px;
      font-weight: bolder;
    }
    .blue {
      color: blue;
    }
    .under {
      text-decoration: underline;
    }
    .highlight {
      background: yellow;
    }

JavaScript

$( "p" ).odd().removeClass( [ "blue", "under" ] );