i wants to delete all css file from my page on page load after topHeader div closing except one which inside top header for that i have written some jquery code but its not working for please anyone can help?
<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>//topHeader closed
<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">
<script>
$(function() {
var count = 1;
$('link').each(function() {
var href = $(this).attr('href');
if (href == "http://wotfly.com/templates-common/106/css/newheader.css") {
if (count > 1) {
$(this).remove();
}
count++;
}
});
});
</script>
Remove function is not deleting the css file from the page please help?
stylesheetin<head></head>tag$("link[href*='http://wotfly.com/templates-common/106/css/newheader.css']").remove();