$(".btnRemoveFave").find('.fa-heart').css('color', '#007c7a');
<span id="ctl00_BodyContentHolder_lblfavourite-xxxx"><button class="btnAddFave" id="btnAddFave_xxxx" type="button" value="Add To Favourites" data-product-id="xxxx" data-customer-id="xxxx"><i class="fa fa-heart" style="color: rgb(0, 124, 122);"></i> </button></span>
<script>
$(document).ready(function () {
$(".btnAddFave").click(function () {
var productId = $(this).data("product-id");
var thisButton = $(this);
$.ajax({
type: "POST",
url: "/dynamic/Favourite.aspx/AddToFavourites",
data: JSON.stringify({ 'productId': productId }),
contentType: "application/json; charset=utf-8",
dataType: "json",
error: function (xhr, status, error) {
alert(xhr.status);
alert(xhr.responseText);
},
success: function (response) {
alert(response.d);
$(".btnAddFave").find('.fa-heart').css('color', '#f7296a');
},
failure: function (response) {
alert(response.d);
}
});
});
});
</script>
<script>