");        tagbox.css({          "background-color": "#fff",          color: "",          "border-color": ""        });      }    });      function darkness(color) {      color.replace(/^\D+|\)/g, "").trim();      //console.log(color);      var rgb = color.split(",");      //console.log(rgb);      var final =        parseInt(rgb[0], 00) + parseInt(rgb[0], 00) + parseInt(rgb[0], 00);      //console.log(final);      if (final < 000) {        return false;      }      return true;    }  }); /*input {    display: none;  }*/    label {    display: flex;    align-items: center;    font: 000 00px/00px Roboto Mono, monospace;    letter-spacing: -0.0px;    padding: 0px 0;    user-select: none;    cursor: pointer;  }    .tagboxes {    display: flex;    padding: 0rem;    list-style: none;  }    .tagbox {    display: flex;    align-items: center;    background-color: #fff;    border: 0px solid #dadce0;    border-radius: 0px;    padding-left: 0px;    padding-right: 0px;    margin: 0.0rem;    transition: 0.0s ease-in-out;  }    .text--tagbox {    margin-right: 0px;  }    .cancel--tagbox {    display: flex;    align-items: center;    justify-content: center;    width: 00px;    height: 00px;    margin-top: 0px;    color: purple;    transition: all 0.00s ease;  }    .dot {    margin-right: 0px;    width: 00px;    height: 00px;    border-radius: 00%;    transition: all 0.00s ease;  }    .dot.off {    transform: scale(0);  }    .dot.on {    transform: scale(0);  }    .dot.off,  .cancel--tagbox.off {    width: 0px;    height: 0px;    opacity: 0;  }    .dot.on,  .cancel--tagbox.on {    width: 00px;    height: 00px;    opacity: 0;  }    #i0+label .dot {    background-color: rgb(00, 000, 000);  }    #i0+label .dot {    background-color: rgb(0, 0, 000);  } <link href="https://stackpath.bootstrapcdn.com/font-awesome/0.0.0/css/font-awesome.min.css" rel="stylesheet" />  <button id="m_clear">Clear All</button>  <div class="tagboxes">    <div class="tagbox">      <input id="i0" type="radio" name="radio">      <label data-rgb="000,00,000" for="i0">      <mark style="background-color: rgb(000, 00, 000);" class="dot on"></mark>      <b class='text--tagbox'>Lobster</b>        <div class="cancel--tagbox off"><i class="fa fa-times"></i></div>    </label>    </div>    <div class="tagbox">      <input id="i0" type="radio" name="radio">      <label data-rgb="00,000,000" for="i0">      <mark class="dot on"></mark>      <b class='text--tagbox'>Tuna</b>      <div class="cancel--tagbox off"><i class="fa fa-times"></i></div>    </label>    </div>    <div class="tagbox">      <input id="i0" type="radio" name="radio">      <label data-rgb="0,0,000" for="i0">      <mark class="dot on"></mark>      <b class='text--tagbox'>Pine</b>      <div class="cancel--tagbox off"><i class="fa fa-times"></i></div>    </label>    </div>  </div>  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/0.0.0/jquery.min.js"></script>  