Adriano• 34,090
@AdrianoEscarabote
Posted
Hello nasershareef, how are you? I truly loved your project's outcome, however I have some advice that I hope you'll find useful:
To make the submit button work only when the user selects a number, we can do this:
$(".number").click(function(event){
$("#result").text("You selected " + this.textContent + " out of 5");
console.log(this.textContent);
$(".submit-btn").click(function(event){
$(".rating").fadeOut(100);
$(".thank-you-state").fadeIn(100);
})
})
The remainder is excellent.
I hope it's useful. 👍
0