This is my first stackoverflow post, hope you can help me!
I need to have a javascript / ajax check for the checkbox in the form I create, the checkbox is canceled by default, but when it is checked, a javascript window appears displaying this text,
"You selected the checkbox for the newsletter, you are sure you want to receive our newsletter ? " when they press the submit button.
If they click βyesβ, the form should provide information about the newsletter for distribution, if not, the form should be submitted, but without information about the newsletter.
I am very grateful for the help, thanks.
source
share