@MerMory-Alloc
Posted
Hi @Wellington-Lucas,I hope you are doing well. I took a look at your code and I think it would be better to set the form's method attribute to "post" so that the page does not reload.
Regarding JavaScript, you can get the value of the checked rating like this
function enviar(elementoSelecionado) {
let value=elementoSelecionado.value ;
\\"Then, write code to make the form disappear and the thanks section appear.
}
Marked as helpful
@MerMory-Alloc Thank you for the answer, i managed to put the value inside the second "card", but the solution with the method "post" did not work. So I found a solution on a forum with the .preventDefault() method
@MerMory-Alloc
Posted
@Wellington-Lucas well that's a better solution, :) happy that works.