StudentCode-in / StudentCode-in.github.io

Central Repository of Student Code-In website
https://studentcode-in.github.io/
MIT License
59 stars 64 forks source link

fix: clear input value on button click #116

Closed jordanmcdougall closed 3 years ago

jordanmcdougall commented 3 years ago

Description

When a user clicks the subscribe button, this code sets the input value to an empty string and the input placeholder value is updated to the success / fail message.

This means when the user tries to add another email, the previous address has been deleted and they can type another address without it including the previous address.

Fixes #114

Type of change

How Has This Been Tested?

Checklist: