In an aps.net mvc partial view, I have 2 thumbs defined in a paragraph.
The CSS (fontawesome) will change the color to blue when I hover.
Based upon an if statement truth, I want to change the color of the thumbs. The idea being that if the User had previously clicked the Like or Dislike thumb, I want that selection (the thumb) indicated by the color green the next time in. It shows that they already like or disliked it.
How do I dynamically change the color of the thumbs given the way I display them in a paragraph?
- @model GbngWebClient.Models.LikeOrDislikeVM
- class="row">
class="blogLike my-size fa fa-thumbs-up">class="my-size"> :
- @Model.LikeCount class="my-size"> | class="blogDisLike my-size fa fa-
- thumbs-down">my-size"> : @Model.DisLikeCount
- @Scripts.Render("~/bundles/jquery")
First LastPosted Aug 20, 2020, 1:22 PM