Skip to content

natalienn/natalienn.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

Welcome to My Business Website

About Us

Welcome to our business! We offer a variety of classes for individuals looking to learn and grow.

Class Options

Class 1

To sign up for Class 1, please fill out the form below:

Class 1 Signup Form

Full Name:

Email:

Class 2

To sign up for Class 2, please fill out the form below:

Class 2 Signup Form

Full Name:

Email:

Class 3

To sign up for Class 3, please fill out the form below:

Class 3 Signup Form

Full Name:

Email:

<script> document.querySelectorAll("a[href^='#']").forEach(function(anchor) { anchor.addEventListener("click", function(event) { event.preventDefault(); // Prevent the default anchor behavior // Hide all class signup forms document.querySelectorAll(".classSignupForm").forEach(function(form) { form.style.display = "none"; }); // Show the selected class signup form var classId = this.getAttribute("href").substring(1); var signupForm = document.getElementById(classId + "SignupForm"); if (signupForm) { signupForm.style.display = "block"; } }); }); document.querySelectorAll(".classSignupForm").forEach(function(form) { form.addEventListener("submit", function(event) { event.preventDefault(); // Prevent the form from submitting // Get form data var formData = new FormData(form); var fullName = formData.get("fullName"); var email = formData.get("email"); var className = form.id.replace("SignupForm", ""); // Get class name from form ID // You can now do something with the form data, such as sending it to a server console.log("Class:", className); console.log("Full Name:", fullName); console.log("Email:", email); // For demonstration purposes, let's just display an alert message alert("Thank you for signing up for " + className + "!"); }); }); </script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published