Add a submit event listener to a form so I can run custom code when someone checks in.
Get the name a user typed in and the team they selected from a dropdown menu.
Create a counter that goes up by 1 every time someone submits the form.
Use the current count and a max goal to calculate a progress percentage.
Use someone's name and selected team to create a personalized greeting.
Clear all fields in the form so it's ready for the next attendee.
Update the text inside a span to show the current attendee count.
Change the width of a progress bar based on the calculated progress.
Use a selected team value to find the matching team element and update its count.
Display a greeting message that includes the person’s name and the full team label.