-1

I am new to HTML and CSS and I created a subscription box where people can enter their emails. I used ruby and SendGrid. I would like to notify people that they have subscribed once they click the subscribe button. Either a pop-up or just text would be great. How can I accomplish this? Thanks so much!

mancristiana
  • 1,896
  • 3
  • 18
  • 28
Lindsay E
  • 19
  • 3
  • Welcome to Stack Overflow. Please take the [tour] to learn how Stack Overflow works and read [ask] on how to improve the quality of your question. Then check the [help/on-topic] to see what questions you can ask. – Progman Apr 11 '20 at 20:51

1 Answers1

2

you can use javascript alert like below.

var myFunction = function() {
alert('you did it!')
}
<a href="#" onclick="myFunction()">click me!</a>

this is obviously the easier solution. But you can also create an html div toggling display none css class.

Giuppox
  • 1,393
  • 9
  • 35