I have three products. I am displaying the last product active on page load. If I hover on other product then the active class will assign to the product.
Now My issue is,
1) I have to remove the New product text from the third product when hovering on the one or two product if hover on the third then displays the New Product again.
2) If I directly hover on the first product then active class not removing from the third product.
When my page load.(It's correct output)

When I directly hover on product one. (It should remove from the product third)

Notice here, I hover on product one but product three is showing New Product text. I have to remove that.

$(function() {
$('.products.onloadhover').addClass('product_set_hover');
});
$(".products").hover(
function() {
$(this).addClass("product_set_hover");
},
function() {
$(this).removeClass("product_set_hover");
}
);
.products {
border: 1px solid #000;
min-height: 250px;
}
.products h2 {
font-size: 20px;
color: #fff;
}
.new_products {
background-color: #fbc60e;
display: inline-block;
padding: 10px;
text-align: center;
}
.new_products span {
font-size: 16px;
color: #000;
}
.product_set_hover {
box-shadow: 0 0 14px rgba(0, 0, 0, .1);
background-color: #d76223;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div class="container">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="products">
<h2>Products1</h2>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="products">
<h2>Products1</h2>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="products onloadhover">
<div class="new_products"><span>New products</span></div>
<h2>Products1</h2>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>