@Jexinte
Posted
Hello @khadijahashmi2 ,
It's fine to struggling :)
Could you tell us what is blocking you ?
I check the live preview and the radio button that you have close to the numbers are easily hidding just by this property : visibility : hidden
Allowing you to move your label as you want with position relative property.
You can use <form> tag to wrap the numbers and the submit button then on your js file you can use dom event like :
form.addEventListener('submit',(e) => { e.preventdefault() }
The e.preventdefault() prevent the naturel behavior of the submit button allowing you to create a condition that check if one of your radio button is checked if yes then you make the rating div dissappear and pop up your thank you div !
In hope it helps !