nss-evening-cohort-12 / pants-chinos

pants-chinos created by GitHub Classroom
0 stars 3 forks source link

Home Page Mailing List Buttons #11

Open spotmonk opened 4 years ago

spotmonk commented 4 years ago

When the user clicks the "join our mailing list" button the button will be replaced by a textbox and a submit button. When the box is filled out and the submit button is clicked then it will all be replaced with a "thank you for signing up" message

AC

WHEN the user clicks the home button THEN I should see a button that says "sign up for our mailing list" THEN When I click the button I should see a text area and a submit button THEN When the text box has an email in it and the submit button is pressed, a message saying "thank you for signing up" should appear

Dev Notes

A button saying "Sign up for our Mailing List" should be in a mailing-list div. When the button is pressed, the innerHTML of the div is changed to a text box and a submit button. an eventlistener is added to the submit button, and when it's clicked the innerhtml of the mailing-list div is changed to "Thank You For Signing Up"