JSFiddle - React, Tailwind, and code Playground

by Norlihazmey Ghazali

HTML

<div class="topHeader" style="background-color: #0a5fa2 !important">
    <div class="stripe">
        <div class="row">
            <div class="col-md-4">
                <p class="needHelp">Need Help?</p>
                <p class="helpDesk">Hotel Reservation Helpdesk (Working Hours TO 8PM)</p>
            </div>
            <div class="col-md-8">
                <div class="wprTopicon"> <span class="whyBookWith">Why book with us ?</span>

                    <div class="secureTrans">SECURE
                        <br>TRANSACTIONS</div>
                    <div class="bestRateGurtee">BEST PRICE
                        <br>GUARANTEED</div>
                    <div class="bestOffer">BEST OFFER</div>
                </div>
            </div>
        </div>
    </div>
<link rel="stylesheet" type="text/css" href="http://wotfly.com/templates-common/106/css/newheader.css">
</div>
<link rel="stylesheet" type="text/css" href="http://wotfly.com/templates-common/106/css/newheader.css">
<link rel="stylesheet" type="text/css" href="http://wotfly.com/templates-common/106/css/newheader.css">
<link rel="stylesheet" type="text/css" href="http://wotfly.com/templates-common/106/css/newheader.css">
<link rel="stylesheet" type="text/css" href="http://wotfly.com/templates-common/106/css/newheader.css">
<link rel="stylesheet" type="text/css" href="http://wotfly.com/templates-common/106/css/newheader.css">

JavaScript

$(function () {
    //var count = 1;
    $('link').each(function (i, e) {
        
        var href = $(this).attr('href');
        if (href == "http://wotfly.com/templates-common/106/css/newheader.css") {
            console.log(i);
            if (i > 0) {
                $(this).remove();
            }
            
        }
       // count++;
    });
});