Latest solutions
interactive comment section feature complete using vanilla js
#vanilla-extract#animationSubmitted over 2 years ago
Latest comments
- @keziarkts@anxhelino
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 - @ritadoumet@anxhelino
Hi, I think that using async await functions for promises is much simpler give it a try
- @anxhelino@anxhelino
I guess i made the wrong choice using pseudo elements to make the round buttons because I couldn't edit the background color using js afterwards. Thank you for the comment