@anxhelino
Posted
Hello, the solution to your problem would be to get rid of the if else statement on your showThanks function. Just leave it like this : function showThanks() { var divShowThanks = document.getElementById("thanks-state"); var divHideRating = document.getElementById("rating-state");
divHideRating.style.display = "none"; divShowThanks.style.display = "block"; getRating(val); }
Marked as helpful
@keziarkts
Posted
Hi @anxhelino, your solution works really well! Thanks a lot 😊